Closed kaby76 closed 3 years ago
In addition, the foldlit did nothing, and I know I see literals in the parser! The Foldlit rule appears to not deal with all occurrences of the string literal in all files. It only deals with the Imports relation, but it should go through all refs of this symbol, which could be in many files.
After fixing this, I noticed that parse that occurs during the enactedits is ripping slow. When I read in the files that were changed, it parses quickly.
Foldlit requires a LHS symbol, which means it needs to have the lexer.g4 on top of the stack. But, after the new code is created and changed, the stack contains the top of stack containing the parser--the lexer is gone, and there are two file entries on the stack for the parser.
At the moment, it takes 9 m for the foldlit operation.
Fixed in 8.2.
There are 2000+ lexer symbols for //lexerRuleSpec/TOKEN_REF. Looking over the code, it first verifies that each is a candidate s.t. the RHS is a string literal. This takes at least 15 minutes to perform (killed--did not wait).