Home
last modified time | relevance | path

Searched refs:ruleScope (Results 1 – 19 of 19) sorted by relevance

/external/antlr/tool/src/main/java/org/antlr/tool/
DNameSpaceChecker.java57 if ( r.ruleScope!=null ) { in checkConflicts()
58 List<Attribute> attributes = r.ruleScope.getAttributes(); in checkConflicts()
225 else if ( r.ruleScope!=null && r.ruleScope.getAttribute(label.getText())!=null ) { in checkForLabelConflict()
DRule.java79 public AttributeScope ruleScope; field in Rule
379 if ( ruleScope!=null && ruleScope.getAttribute(name)!=null ) { in getAttributeScope()
380 scope = ruleScope; in getAttributeScope()
/external/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/
DDefineGrammarItemsWalker.g296 r.ruleScope = grammar.createRuleScope(r.name,$attrs.getToken());
297 r.ruleScope.isDynamicRuleScope = true;
298 r.ruleScope.addAttributes($attrs.text, ';');
300 r.ruleScope.defineNamedAction(action, $AttributeScopeActions::actions.get(action));
DActionTranslator.g163 return scopeRule.ruleScope;
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg505 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
506 <ruleAttributeScopeFuncDecl(scope=r.ruleDescriptor.ruleScope)>
507 <ruleAttributeScopeFuncs(scope=r.ruleDescriptor.ruleScope)>
689 <rules:{r |<ruleAttributeScopeDecl(scope=r.ruleDescriptor.ruleScope)>}>
725 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
726 <ruleAttributeScopeDef(scope=r.ruleDescriptor.ruleScope)>
1205 <rules:{r |<ruleAttributeScopeFuncMacro(scope=r.ruleDescriptor.ruleScope)>}>
1316 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
1317 <ruleAttributeScope(scope=r.ruleDescriptor.ruleScope)><\n>
1372 …<rules: {r |<if(r.ruleDescriptor.ruleScope)><ruleAttributeScopeFree(scope=r.ruleDescriptor.ruleSco…
[all …]
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DObjC.stg582 <rule.ruleDescriptor:{ ruleDescriptor | <ruleAttributeScopeInterface(scope=ruleDescriptor.ruleScope
589 <rules:{rule | <rule.ruleDescriptor.ruleScope:ruleAttributeScopeDecl(scope=rule.ruleDescriptor.rule…
691 …escriptor:{ ruleDescriptor | <ruleAttributeScopeImplementation(scope=ruleDescriptor.ruleScope)>}>}>
700 <rules:{rule | <rule.ruleDescriptor.ruleScope:ruleAttributeScope()>}>
743 <rules:{rule | <rule.ruleDescriptor.ruleScope:ruleAttributeScopeInit()>}>
931 <ruleDescriptor.ruleScope:{it | [<it.name>_stack push:[<it.name>_Scope new<it.name>_Scope]];}>
937 <ruleDescriptor.ruleScope:{it | [<it.name>_stack pop];}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Delphi/
DDelphi.stg400 <rules: {r | <ruleAttributeScopeInit(scope=r.ruleDescriptor.ruleScope)>}>
593 <ruleAttributeScopeDeclaration(scope=ruleDescriptor.ruleScope)>
637 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
749 <ruleDescriptor.ruleScope:{<it.name>Stack.Push(T<it.name>Scope.Create);}; separator="\n">
754 <ruleDescriptor.ruleScope:{<it.name>Stack.Pop;}; separator="\n">
846 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DPython3.stg247 <rules:{it|<ruleAttributeScopeClass(scope=it.ruleDescriptor.ruleScope)>}>
270 <rules:{it | <ruleAttributeScopeStack(scope=it.ruleDescriptor.ruleScope)>}>
502 <ruleDescriptor.ruleScope:{it | self.<it.name>_stack.append(<it.name>_scope())}; separator="\n">
507 <ruleDescriptor.ruleScope:{it | self.<it.name>_stack.pop()}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DRuby.stg205 <rules:{it | <ruleAttributeScopeClass(.ruleDescriptor.ruleScope)>}>
256 …ributeScopeStack()><\n><endif>}><rules:{it | <ruleAttributeScopeStack(.ruleDescriptor.ruleScope)>}>
550 <ruleDescriptor.useScopes:{it | @<it>_stack.push( @@<it>.new )<\n>}><ruleDescriptor.ruleScope:{it |…
554 <ruleDescriptor.useScopes:{it | @<it>_stack.pop<\n>}><ruleDescriptor.ruleScope:{it | @<it.name>_sta…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DPython.stg240 <rules:{it|<ruleAttributeScopeClass(scope=it.ruleDescriptor.ruleScope)>}>
263 <rules:{it | <ruleAttributeScopeStack(scope=it.ruleDescriptor.ruleScope)>}>
495 <ruleDescriptor.ruleScope:{it | self.<it.name>_stack.append(<it.name>_scope())}; separator="\n">
500 <ruleDescriptor.ruleScope:{it | self.<it.name>_stack.pop()}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Cpp/
DCpp.stg382 …<rules:{r | <if(r.ruleDescriptor.ruleScope)><ruleAttributeScopeDecl(scope=r.ruleDescriptor.ruleSco…
396 <rules: {r |<if(r.ruleDescriptor.ruleScope)>
397 <ruleAttributeScopeDef(scope=r.ruleDescriptor.ruleScope)>
1257 <ruleDescriptor.ruleScope:{it | m_<it.name>_stack.push(<it.name>Scope()); }; separator="\n">
1351 <ruleDescriptor.ruleScope:{it | m_<it.name>_stack.pop(); }; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DJavaScript.stg319 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
390 <ruleDescriptor.ruleScope:{this.<it.name>_stack.push({});}; separator="\n">
395 <ruleDescriptor.ruleScope:{this.<it.name>_stack.pop();}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DPerl5.stg337 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
408 <ruleDescriptor.ruleScope:{<it.name>_stack.push(new <it.name>_scope());}; separator="\n">
413 <ruleDescriptor.ruleScope:{<it.name>_stack.pop();}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Scala/
DScala.stg343 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
412 <ruleDescriptor.ruleScope:{it | <it.name>_stack.push(new <it.name>_scope())}; separator="\n">
417 <ruleDescriptor.ruleScope:{it | <it.name>_stack.pop()}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DJava.stg370 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
449 <ruleDescriptor.ruleScope:{it |<it.name>_stack.push(new <it.name>_scope());}; separator="\n">
454 <ruleDescriptor.ruleScope:{it |<it.name>_stack.pop();}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DActionScript.stg323 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
388 <ruleDescriptor.ruleScope:{it |<it.name>_stack.push(new Object());}; separator="\n">
393 <ruleDescriptor.ruleScope:{it |<it.name>_stack.pop();}; separator="\n">
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DCSharp3.stg531 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
624 <ruleDescriptor.ruleScope:{it|<it.name>_stack.Push(new <it.name>_scope(this));<it.name>_scopeInit(<…
629 <ruleDescriptor.ruleScope:{it|<it.name>_scopeAfter(<it.name>_stack.Peek());<it.name>_stack.Pop();};…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DCSharp2.stg550 <ruleAttributeScope(scope=ruleDescriptor.ruleScope)>
646 <ruleDescriptor.ruleScope:{it|<it.name>_stack.Push(new <it.name>_scope());<it.name>_scopeInit(<it.n…
651 <ruleDescriptor.ruleScope:{it|<it.name>_scopeAfter(<it.name>_stack.Peek());<it.name>_stack.Pop();};…
/external/antlr/tool/src/main/java/org/antlr/codegen/
DCodeGenerator.java1120 scope = r.ruleScope; // if not global, might be rule scope in issueInvalidScopeError()