Class LangiumGrammarValidator
Constructors
Properties
Protected
Readonly
documents
Protected
Readonly
references
Methods
checkAssignmentReservedName
- checkAssignmentReservedName(assignment, accept): void
Returns void
checkAssignmentToFragmentRule
- checkAssignmentToFragmentRule(assignment, accept): void
Returns void
checkAssignmentTypes
- checkAssignmentTypes(assignment, accept): void
Returns void
checkAssignmentWithFeatureName
- checkAssignmentWithFeatureName(assignment, accept): void
Returns void
checkClashingTerminalNames
- checkClashingTerminalNames(grammar, accept): void
Returns void
checkCrossReferenceSyntax
- checkCrossReferenceSyntax(crossRef, accept): void
Returns void
checkCrossReferenceToTypeUnion
- checkCrossReferenceToTypeUnion(reference, accept): void
Returns void
checkCrossRefNameAssignment
- checkCrossRefNameAssignment(reference, accept): void
Returns void
checkCrossRefTerminalType
- checkCrossRefTerminalType(reference, accept): void
Returns void
checkCrossRefType
- checkCrossRefType(reference, accept): void
Returns void
checkDirectlyUsedRegexFlags
- checkDirectlyUsedRegexFlags(token, accept): void
Returns void
checkDuplicateImportedGrammar
- checkDuplicateImportedGrammar(grammar, accept): void
Returns void
checkEmptyParserRule
- checkEmptyParserRule(parserRule, accept): void
Returns void
checkEmptyTerminalRule
- checkEmptyTerminalRule(terminalRule, accept): void
Returns void
checkEntryGrammarRule
- checkEntryGrammarRule(grammar, accept): void
Returns void
checkFragmentsInTypes
- checkFragmentsInTypes(type, accept): void
Returns void
checkGrammarForUnusedRules
- checkGrammarForUnusedRules(grammar, accept): void
Returns void
checkGrammarHiddenTokens
- checkGrammarHiddenTokens(grammar, accept): void
Returns void
checkGrammarName
- checkGrammarName(grammar, accept): void
Returns void
checkGrammarTypeInfer
- checkGrammarTypeInfer(grammar, accept): void
Returns void
checkHiddenTerminalRule
- checkHiddenTerminalRule(terminalRule, accept): void
Returns void
checkInterfacePropertyTypes
- checkInterfacePropertyTypes(interfaceDecl, accept): void
Returns void
checkInvalidCharacterRange
- checkInvalidCharacterRange(range, accept): void
Returns void
checkInvalidRegexFlags
- checkInvalidRegexFlags(token, accept): void
Returns void
checkKeyword
- checkKeyword(keyword, accept): void
Returns void
checkPackageImport
- checkPackageImport(imp, accept): void
Returns void
checkParserRuleDataType
- checkParserRuleDataType(rule, accept): void
Returns void
checkParserRuleReservedName
- checkParserRuleReservedName(rule, accept): void
Returns void
Protected
checkReferenceToRuleButNotType
- checkReferenceToRuleButNotType(type): undefined | string
Returns undefined | string
checkReferenceTypeUnion
- checkReferenceTypeUnion(type, accept): void
Returns void
checkRuleCallMultiplicity
- checkRuleCallMultiplicity(call, accept): void
Returns void
checkRuleCallParameters
- checkRuleCallParameters(ruleCall, accept): void
Returns void
checkRuleName
- checkRuleName(rule, accept): void
Returns void
checkRuleParametersUsed
- checkRuleParametersUsed(rule, accept): void
Returns void
checkTerminalRuleReturnType
- checkTerminalRuleReturnType(rule, accept): void
Returns void
checkTypeReservedName
- checkTypeReservedName(type, accept): void
Returns void
checkUniqueImportedRules
- checkUniqueImportedRules(grammar, accept): void
Returns void
checkUniqueRuleName
- checkUniqueRuleName(grammar, accept): void
Returns void
checkUniqueTypeName
- checkUniqueTypeName(grammar, accept): void
Returns void
checkUnorderedGroup
- checkUnorderedGroup(unorderedGroup, accept): void
Returns void
checkUsedFragmentTerminalRule
- checkUsedFragmentTerminalRule(ruleCall, accept): void
Returns void
checkUsedHiddenTerminalRule
- checkUsedHiddenTerminalRule(ruleCall, accept): void
Returns void
Protected
createMixedTypeError
- createMixedTypeError(propName): string
Returns string
Compared to the validation above, this validation only checks whether two imported grammars export the same grammar rule.