Class LangiumGrammarValidator Constructors PropertiesProtected
Readonly
documents Protected
Readonly
node Locator Protected
Readonly
references Methodscheck Assignment Reserved Name check Assignment Reserved Name ( assignment , accept ) : void Returns void check Assignment To Fragment Rule check Assignment To Fragment Rule ( assignment , accept ) : void Returns void check Assignment Types check Assignment Types ( assignment , accept ) : void Returns void check Assignment With Feature Name check Assignment With Feature Name ( assignment , accept ) : void Returns void check Clashing Terminal Names check Clashing Terminal Names ( grammar , accept ) : void Returns void check Cross Reference Syntax check Cross Reference Syntax ( crossRef , accept ) : void Returns void check Cross Reference To Type Union check Cross Reference To Type Union ( reference , accept ) : void Returns void check Cross Ref Name Assignment check Cross Ref Name Assignment ( reference , accept ) : void Returns void check Cross Ref Terminal Type check Cross Ref Terminal Type ( reference , accept ) : void Returns void check Cross Ref Type check Cross Ref Type ( reference , accept ) : void Returns void check Directly Used Regex Flags check Directly Used Regex Flags ( token , accept ) : void Returns void check Duplicate Imported Grammar check Duplicate Imported Grammar ( grammar , accept ) : void Returns void check Empty Parser Rule check Empty Parser Rule ( parserRule , accept ) : void Returns void check Empty Terminal Rule check Empty Terminal Rule ( terminalRule , accept ) : void Returns void check Entry Grammar Rule check Entry Grammar Rule ( grammar , accept ) : void Returns void check Fragments In Types check Fragments In Types ( type , accept ) : void Returns void check Grammar For Unused Rules check Grammar For Unused Rules ( grammar , accept ) : void Returns void check Grammar Hidden Tokens check Grammar Hidden Tokens ( grammar , accept ) : void Returns void check Grammar Name check Grammar Name ( grammar , accept ) : void Returns void check Grammar Type Infer check Grammar Type Infer ( grammar , accept ) : void Returns void check Hidden Terminal Rule check Hidden Terminal Rule ( terminalRule , accept ) : void Returns void check Interface Property Types check Interface Property Types ( interfaceDecl , accept ) : void Returns void check Invalid Character Range check Invalid Character Range ( range , accept ) : void Returns void check Invalid Regex Flags check Invalid Regex Flags ( token , accept ) : void Returns void check Keyword check Keyword ( keyword , accept ) : void Returns void check Multi Rule Calls Are Assigned check Multi Rule Calls Are Assigned ( call , accept ) : void Returns void check Operator Multiplicities For Multi Assignments check Operator Multiplicities For Multi Assignments ( rule , accept ) : void Returns void check Package Import check Package Import ( imp , accept ) : void Returns void check Parser Rule Data Type check Parser Rule Data Type ( rule , accept ) : void Returns void check Parser Rule Reserved Name check Parser Rule Reserved Name ( rule , accept ) : void Returns void Protected
check Reference To Rule But Not Type check Reference To Rule But Not Type ( type ) : undefined | string Returns undefined | string check Reference Type Union check Reference Type Union ( type , accept ) : void Returns void check Rule Call Parameters check Rule Call Parameters ( ruleCall , accept ) : void Returns void check Rule Name check Rule Name ( rule , accept ) : void Returns void check Rule Parameters Used check Rule Parameters Used ( rule , accept ) : void Returns void check Terminal Rule Return Type check Terminal Rule Return Type ( rule , accept ) : void Returns void check Type Reserved Name check Type Reserved Name ( type , accept ) : void Returns void check Unique Imported Rules check Unique Imported Rules ( grammar , accept ) : void Returns void check Unique Rule Name check Unique Rule Name ( grammar , accept ) : void Returns void check Unique Type Name check Unique Type Name ( grammar , accept ) : void Returns void check Unordered Group check Unordered Group ( unorderedGroup , accept ) : void Returns void check Used Fragment Terminal Rule check Used Fragment Terminal Rule ( ruleCall , accept ) : void Returns void check Used Hidden Terminal Rule check Used Hidden Terminal Rule ( ruleCall , accept ) : void Returns void Protected
create Mixed Type Error create Mixed Type Error ( propName ) : string Returns string
This validation checks, that parser rules which are called multiple times are assigned (except for fragments).