File tree 1 file changed +4
-4
lines changed
tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ import {
26
26
Interval, IntervalSet
27
27
} from 'antlr4';
28
28
<if(file.genListener)>
29
- import <file.grammarName>Listener from "./<file.grammarName>Listener.js";
29
+ import type <file.grammarName>Listener from "./<file.grammarName>Listener.js";
30
30
<endif>
31
31
<if(file.genVisitor)>
32
- import <file.grammarName>Visitor from "./<file.grammarName>Visitor.js";
32
+ import type <file.grammarName>Visitor from "./<file.grammarName>Visitor.js";
33
33
<endif>
34
34
35
35
// for running tests with parameters, TODO: discuss strategy for typed parameters in CI
@@ -47,7 +47,7 @@ import {ParseTreeListener} from "antlr4";
47
47
48
48
<header>
49
49
50
- <file.listenerNames:{lname | import { <lname; format="cap">Context \} from "./<file.parserName>";}; separator="\n">
50
+ <file.listenerNames:{lname | import type { <lname; format="cap">Context \} from "./<file.parserName>";}; separator="\n">
51
51
52
52
<namedActions.beforeListener>
53
53
@@ -89,7 +89,7 @@ import {ParseTreeVisitor} from 'antlr4';
89
89
90
90
<header>
91
91
92
- <file.visitorNames:{lname | import { <lname; format="cap">Context \} from "./<file.parserName>";}; separator="\n">
92
+ <file.visitorNames:{lname | import type { <lname; format="cap">Context \} from "./<file.parserName>";}; separator="\n">
93
93
94
94
<namedActions.beforeVisitor>
95
95
You can’t perform that action at this time.
0 commit comments