You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When going from this.CONSUME to this.CONSUME1 the GUI hangs when trying to show the function do comment
// index.jsconst{ Parser }=require('chevrotain');newParser().CONSUME// when typing "1" after this it hangs
I tried to find out what caused the hang and if i remove the <-- in the this.CONSUME2(Identifier); // <-- here we use CONSUME2 because the terminal part in the comment below it does not crash anymore.
// This file is a typings file from the chevrotain module (https://github.com/SAP/chevrotain)// node_modules/chevrotain/lib/chevrotain.d.ts/** * * A Parsing DSL method use to consume a single terminal Token. * a Token will be consumed, IFF the next token in the token vector matches <tokType>. * otherwise the parser will attempt to perform error recovery. * * The index in the method name indicates the unique occurrence of a terminal consumption * inside a the top level rule. What this means is that if a terminal appears * more than once in a single rule, each appearance must have a difference index. * * for example: * * function parseQualifiedName() { * this.CONSUME1(Identifier); * this.MANY(()=> { * this.CONSUME1(Dot); * this.CONSUME2(Identifier); // <-- here we use CONSUME2 because the terminal * }); // 'Identifier' has already appeared previously in the * // the rule 'parseQualifiedName' * } * * @param tokType - The Type of the token to be consumed. * @param options - optional properties to modify the behavior of CONSUME. */protectedCONSUME1(tokType: TokenType,options?: ConsumeMethodOpts): IToken;
VS Code version: Code - Insiders 1.22.0-insider (b753213, 2018-03-22T06:16:52.928Z)
OS version: Windows_NT x64 10.0.16299 This also happens using the latest stable 1.21.1
Reproduces without extensions
The text was updated successfully, but these errors were encountered:
Issue Type: Bug
When going from this.CONSUME to this.CONSUME1 the GUI hangs when trying to show the function do comment
I tried to find out what caused the hang and if i remove the
<--
in thethis.CONSUME2(Identifier); // <-- here we use CONSUME2 because the terminal
part in the comment below it does not crash anymore.VS Code version: Code - Insiders 1.22.0-insider (b753213, 2018-03-22T06:16:52.928Z)
OS version: Windows_NT x64 10.0.16299
This also happens using the latest stable 1.21.1
Reproduces without extensions
The text was updated successfully, but these errors were encountered: