コード例 #1
0
 @Override
 protected String getUnassignedRuleCallToken(
     EObject semanticObject, RuleCall ruleCall, INode node) {
   if (ruleCall.getRule() == grammarAccess.getArrayBracketsRule())
     return getArrayBracketsToken(semanticObject, ruleCall, node);
   return "";
 }
コード例 #2
0
 @Inject
 protected void init(IGrammarAccess access) {
   grammarAccess = (XtypeGrammarAccess) access;
   match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q =
       new GroupAlias(
           false,
           true,
           new TokenAlias(
               false,
               false,
               grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()),
           new TokenAlias(
               false,
               false,
               grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()));
   match_XImportDeclaration_SemicolonKeyword_2_q =
       new TokenAlias(
           false, true, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2());
 }