@Override protected void emit_ParenthesizedElement_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { if (semanticObject instanceof CompoundElement) { CompoundElement ele = (CompoundElement) semanticObject; if (!Strings.isNullOrEmpty(ele.getCardinality()) && ele.getElements().size() > 1) { Keyword kw = grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0(); acceptUnassignedKeyword(kw, kw.getValue(), nodes == null || nodes.isEmpty() ? null : (ILeafNode) nodes.get(0)); } } super.emit_ParenthesizedCondition_LeftParenthesisKeyword_0_a(semanticObject, transition, nodes); }
protected ISynAbsorberState navigateToAbsorber(ISynFollowerOwner fromState, INode fromNode, INode toNode, RuleCallStack stack) { if (fromState instanceof ISynAbsorberState) return (ISynAbsorberState) fromState; if (fromState instanceof ISynNavigable) { ISynNavigable fromEmitter = (ISynNavigable) fromState; // RCStack back = stack.clone(); if (fromEmitter.hasEmitters()) { List<ISynState> path = fromEmitter.getShortestStackpruningPathToAbsorber(stack); accept(fromNode, path, stack); } return fromEmitter.getTarget(); } throw new IllegalStateException(); }
/** * Syntax: KW1+ */ @Override protected void emit_MandatoryManyTransition_KW1ParserRuleCall_1_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { ICompositeNode node = (ICompositeNode) nodes.get(0); acceptUnassignedDatatype(ga.getMandatoryManyTransitionAccess().getKW1ParserRuleCall_1(), "matched 4", node); }
@Override public ISerializationDiagnostic createUnexpectedEmitterDiagnostic(ISynNavigable currentState, AbstractElement target, RuleCallStack stack) { return new SerializationDiagnostic(UNEXPECTED_EMITTER_DIAGNOSTIC, null, target, null, null); }
ISerializationDiagnostic createUnexpectedEmitterDiagnostic(ISynNavigable currentState, AbstractElement target, RuleCallStack stack);
/** * Ambiguous syntax: * 'pokemon' | 'pkmn' * * This ambiguous syntax occurs at: * (rule start) (ambiguity) '{' '}' (rule start) * (rule start) (ambiguity) '{' pkmnCards+=Card */ protected void emit_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * 'trainer' | 'trnr' * * This ambiguous syntax occurs at: * (rule start) (ambiguity) '{' '}' (rule start) * (rule start) (ambiguity) '{' trainerCards+=Card */ protected void emit_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ('('? '{' 'function' '(') | '(' * * This ambiguous syntax occurs at: * (rule start) (ambiguity) fpars+=TAnonymousFormalParameter */ protected void emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * (rule start) '(' ')' (ambiguity) (rule start) * fpars+=TFormalParameter ')' (ambiguity) (rule end) * returnTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_CallableCtor_SemicolonKeyword_3_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '('? * * This ambiguous syntax occurs at: * (rule start) (ambiguity) 'intersection' '{' typeRefs+=TypeRefWithoutModifiers * (rule start) (ambiguity) 'this' (rule start) * (rule start) (ambiguity) 'this' dynamic?='+' * (rule start) (ambiguity) 'this' followedByQuestionMark?='?' * (rule start) (ambiguity) 'type' '{' typeArg=TypeArgInTypeTypeRef * (rule start) (ambiguity) 'union' '{' typeRefs+=TypeRefWithoutModifiers * (rule start) (ambiguity) '{' '@' 'This' '(' declaredThisType=TypeRefFunctionTypeExpression * (rule start) (ambiguity) '{' 'function' '(' ')' ':' returnTypeRef=TypeRef * (rule start) (ambiguity) '{' 'function' '(' ')' '}' (rule start) * (rule start) (ambiguity) '{' 'function' '(' ')' '}' followedByQuestionMark?='?' * (rule start) (ambiguity) '{' 'function' '<' ownedTypeVars+=TypeVariable * (rule start) (ambiguity) constructorRef?='constructor' * (rule start) (ambiguity) declaredType=[Type|TypeReferenceName] * (rule start) (ambiguity) definedTypingStrategy=TypingStrategyUseSiteOperator */ protected void emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ('(' ')')? * * This ambiguous syntax occurs at: * name=IDENTIFIER (ambiguity) (rule end) */ protected void emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * typeRef=TypeRef (ambiguity) (rule end) */ protected void emit_TField_SemicolonKeyword_5_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * returnTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_TMethod_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * (';' | ',')? * * This ambiguous syntax occurs at: * astStructuralMembers+=TStructMember (ambiguity) '}' (rule end) * astStructuralMembers+=TStructMember (ambiguity) '}' dynamic?='+' * astStructuralMembers+=TStructMember (ambiguity) '}' followedByQuestionMark?='?' * astStructuralMembers+=TStructMember (ambiguity) astStructuralMembers+=TStructMember */ protected void emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ('{' 'function' '(') | '(' * * This ambiguous syntax occurs at: * (rule start) '('* (ambiguity) fpars+=TAnonymousFormalParameter */ protected void emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '('* * * This ambiguous syntax occurs at: * (rule start) (ambiguity) '(' ')' '=>' returnTypeRef=PrimaryTypeExpression * (rule start) (ambiguity) 'intersection' '{' typeRefs+=TypeRefWithoutModifiers * (rule start) (ambiguity) 'this' (rule start) * (rule start) (ambiguity) 'this' dynamic?='+' * (rule start) (ambiguity) 'this' followedByQuestionMark?='?' * (rule start) (ambiguity) 'type' '{' typeArg=TypeArgInTypeTypeRef * (rule start) (ambiguity) 'union' '{' typeRefs+=TypeRefWithoutModifiers * (rule start) (ambiguity) '{' '@' 'This' '(' declaredThisType=TypeRefFunctionTypeExpression * (rule start) (ambiguity) '{' 'function' '(' ')' ':' returnTypeRef=TypeRef * (rule start) (ambiguity) '{' 'function' '(' ')' '}' (rule start) * (rule start) (ambiguity) '{' 'function' '(' ')' '}' followedByQuestionMark?='?' * (rule start) (ambiguity) '{' 'function' '<' ownedTypeVars+=TypeVariable * (rule start) (ambiguity) (('{' 'function' '(') | '(') fpars+=TAnonymousFormalParameter * (rule start) (ambiguity) arrayTypeLiteral?='[' * (rule start) (ambiguity) constructorRef?='constructor' * (rule start) (ambiguity) declaredType=[Type|TypeReferenceName] * (rule start) (ambiguity) definedTypingStrategy=TypingStrategyUseSiteOperator * (rule start) (ambiguity) {IntersectionTypeExpression.typeRefs+=} * (rule start) (ambiguity) {UnionTypeExpression.typeRefs+=} */ protected void emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '('+ * * This ambiguous syntax occurs at: * (rule start) (ambiguity) {IntersectionTypeExpression.typeRefs+=} * (rule start) (ambiguity) {UnionTypeExpression.typeRefs+=} */ protected void emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '|'* * * This ambiguous syntax occurs at: * elements+=Alternative (ambiguity) (rule end) */ protected void emit_Disjunction_VerticalLineKeyword_0_1_1_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '|'+ * * This ambiguous syntax occurs at: * elements+=Alternative (ambiguity) elements+=Alternative * {Disjunction.elements+=} (ambiguity) (rule end) * {Disjunction.elements+=} (ambiguity) elements+=Alternative */ protected void emit_Disjunction_VerticalLineKeyword_0_1_1_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '|'* * * This ambiguous syntax occurs at: * (rule start) (ambiguity) (rule start) * elements+=Alternative (ambiguity) (rule end) */ protected void emit_Disjunction_VerticalLineKeyword_1_1_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * '|'+ * * This ambiguous syntax occurs at: * (rule start) (ambiguity) elements+=Alternative * elements+=Alternative (ambiguity) elements+=Alternative */ protected void emit_Disjunction_VerticalLineKeyword_1_1_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * declaredOptional?='?' '(' ')' (ambiguity) (rule end) * declaredTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_0_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * fpar=FormalParameter ')' (ambiguity) (rule end) */ protected void emit_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_1_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * fpars+=FormalParameter ')' (ambiguity) (rule end) * returnTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_2_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * fpars+=FormalParameter ')' (ambiguity) (rule end) */ protected void emit_AnnotatedPropertyAssignment_SemicolonKeyword_1_3_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ('(' ')')? * * This ambiguous syntax occurs at: * name=AnnotationName (ambiguity) (rule end) */ protected void emit_AnnotationNoAtSign___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ','? * * This ambiguous syntax occurs at: * elements+=BindingRestElement (ambiguity) ']' (rule end) */ protected void emit_ArrayBindingPattern_CommaKeyword_3_2_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ('{' 'function' '(') | '(' * * This ambiguous syntax occurs at: * (rule start) '('* (ambiguity) fpars+=TAnonymousFormalParameter * (rule start) (ambiguity) fpars+=TAnonymousFormalParameter */ protected void emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * 'implements' | 'extends' * * This ambiguous syntax occurs at: * superClassRef=ParameterizedTypeRefNominal (ambiguity) implementedInterfaceRefs+=ParameterizedTypeRefNominal */ protected void emit_ClassExtendsClause_ExtendsKeyword_0_1_0_1_0_1_or_ImplementsKeyword_0_1_0_1_0_0(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ',' | 'implements' | 'extends' * * This ambiguous syntax occurs at: * implementedInterfaceRefs+=ParameterizedTypeRefNominal (ambiguity) implementedInterfaceRefs+=ParameterizedTypeRefNominal */ protected void emit_ClassImplementsList_CommaKeyword_1_0_0_or_ExtendsKeyword_1_0_2_or_ImplementsKeyword_1_0_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * Semi? * * This ambiguous syntax occurs at: * expression=Expression ')' (ambiguity) (rule end) */ protected void emit_DoStatement_SemiParserRuleCall_6_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ','? * * This ambiguous syntax occurs at: * namedExports+=ExportSpecifier (ambiguity) '}' 'from' reexportedFrom=[TModule|ModuleSpecifier] * namedExports+=ExportSpecifier (ambiguity) '}' Semi (rule end) */ protected void emit_ExportClause_CommaKeyword_1_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * Semi? * * This ambiguous syntax occurs at: * (rule start) 'function' '(' ')' (ambiguity) (rule start) * body=Block (ambiguity) (rule end) * declaredAsync?='async' NO_LINE_TERMINATOR? 'function' '(' ')' (ambiguity) (rule end) * declaredModifiers+=N4Modifier 'function' '(' ')' (ambiguity) (rule end) * fpars+=FormalParameter ')' (ambiguity) (rule end) * generator?='*' '(' ')' (ambiguity) (rule end) * name=BindingIdentifier '(' ')' (ambiguity) (rule end) * returnTypeRef=TypeRef (ambiguity) (rule end) * typeVars+=TypeVariable '>' '(' ')' (ambiguity) (rule end) */ protected void emit_FunctionDeclaration_SemiParserRuleCall_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ','? * * This ambiguous syntax occurs at: * importSpecifiers+=NamedImportSpecifier (ambiguity) '}' importFrom?='from' */ protected void emit_ImportSpecifiersExceptDefault_CommaKeyword_1_1_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ',' | 'implements' | 'extends' * * This ambiguous syntax occurs at: * superInterfaceRefs+=ParameterizedTypeRefNominal (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal */ protected void emit_InterfaceImplementsList_CommaKeyword_2_0_0_or_ExtendsKeyword_2_0_2_or_ImplementsKeyword_2_0_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * 'extends' | 'implements' * * This ambiguous syntax occurs at: * (rule start) 'interface' (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal * declaredModifiers+=N4Modifier 'interface' (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal * name=BindingIdentifier (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal * typeVars+=TypeVariable '>' (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal * typingStrategy=TypingStrategyDefSiteOperator (ambiguity) superInterfaceRefs+=ParameterizedTypeRefNominal */ protected void emit_InterfaceImplementsList_ExtendsKeyword_0_0_or_ImplementsKeyword_0_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * (rule start) '(' ')' (ambiguity) (rule start) * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * fpars+=FormalParameter ')' (ambiguity) (rule end) * returnTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_N4CallableConstructorDeclaration_SemicolonKeyword_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * declaredOptional?='?' '(' ')' (ambiguity) (rule end) * declaredTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_N4GetterDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Ambiguous syntax: * ';'? * * This ambiguous syntax occurs at: * body=Block (ambiguity) (rule end) * declaredName=LiteralOrComputedPropertyName '(' ')' (ambiguity) (rule end) * fpars+=FormalParameter ')' (ambiguity) (rule end) * returnTypeRef=TypeRef (ambiguity) (rule end) */ protected void emit_N4MethodDeclaration_SemicolonKeyword_1_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }