Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-lischke committed Sep 1, 2023
1 parent 8e9a285 commit ad85e3c
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ export default class <parser.name> extends <superClass; null="Parser"> {
public static override readonly EOF = Token.EOF;
<parser.rules:{r | public static readonly RULE_<r.name> = <r.index>;}; separator="\n", wrap, anchor>

public static readonly literalNames = [
public static readonly literalNames: (string|null)[] = [
<parser.literalNames:{t | <t>}; null="null", separator=", ", wrap, anchor>
];

public static readonly symbolicNames = [
public static readonly symbolicNames: (string|null)[] = [
<parser.symbolicNames:{t | <t>}; null="null", separator=", ", wrap, anchor>
];
public static readonly ruleNames = [
public static readonly ruleNames: string[] = [
<parser.ruleNames:{r | "<r>",}; separator=" ", wrap, anchor>
];

Expand Down Expand Up @@ -876,23 +876,23 @@ export default class <lexer.name> extends <superClass; null="Lexer"> {
public static readonly EOF = Token.EOF;
<rest(lexer.modes):{m | public static readonly <m> = <i>;}; separator="\n">

public static readonly channelNames = [
public static readonly channelNames: string[] = [
"DEFAULT_TOKEN_CHANNEL", "HIDDEN"<if (lexer.channelNames)>, <lexer.channelNames:{c| "<c>"}; separator=", ", wrap, anchor><endif>
];

public static readonly literalNames = [
public static readonly literalNames: (string | null)[] = [
<lexer.literalNames:{t | <t>}; null="null", separator=", ", wrap, anchor>
];

public static readonly symbolicNames = [
public static readonly symbolicNames: (string | null)[] = [
<lexer.symbolicNames:{t | <t>}; null="null", separator=", ", wrap, anchor>
];

public static readonly modeNames = [
public static readonly modeNames: string[] = [
<lexer.modes:{m| "<m>",}; separator=" ", wrap, anchor>
];

public static readonly ruleNames = [
public static readonly ruleNames: string[] = [
<lexer.ruleNames:{r | "<r>",}; separator=" ", wrap, anchor>
];

Expand Down

0 comments on commit ad85e3c

Please sign in to comment.