Home
last modified time | relevance | path

Searched refs:singleElement (Results 1 – 12 of 12) sorted by relevance

/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DRewriteRuleElementStream.cs66 protected object singleElement; field in Antlr.Runtime.Tree.RewriteRuleElementStream
102 this.singleElement = null; in RewriteRuleElementStream()
131 if ( singleElement == null ) in Add()
133 singleElement = el; in Add()
138 elements.Add( singleElement ); in Add()
139 singleElement = null; in Add()
183 return ToTree( singleElement ); in NextCore()
189 if ( singleElement != null ) in NextCore()
192 return ToTree( singleElement ); in NextCore()
223 return ( singleElement != null && cursor < 1 ) ||
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DRewriteRuleElementStream.cs64 protected object singleElement; field in Antlr.Runtime.Tree.RewriteRuleElementStream
100 this.singleElement = null; in RewriteRuleElementStream()
125 if (singleElement == null) { // no elements yet, track w/o list in Add()
126 singleElement = el; in Add()
131 elements.Add(singleElement); in Add()
132 singleElement = null; in Add()
170 return ToTree(singleElement); in NextCore()
176 if (singleElement != null) { in NextCore()
178 return ToTree(singleElement); in NextCore()
206 return (singleElement != null && cursor < 1) ||
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DRewriteRuleElementStream.java53 protected Object singleElement; field in RewriteRuleElementStream
98 this.singleElement = null; in RewriteRuleElementStream()
121 if ( singleElement == null ) { // no elements yet, track w/o list in add()
122 singleElement = el; in add()
127 elements.add(singleElement); in add()
128 singleElement = null; in add()
162 return toTree(singleElement); in _next()
168 if ( singleElement!=null ) { in _next()
170 return toTree(singleElement); in _next()
193 return (singleElement != null && cursor < 1) || in hasNext()
[all …]
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/
DRewriteRuleElementStream.js34 this.singleElement = null;
61 if ( !org.antlr.lang.isValue(this.singleElement) ) { // no elements yet, track w/o list
62 this.singleElement = el;
67 this.elements.push(this.singleElement);
68 this.singleElement = null;
103 return this.toTree(this.singleElement);
109 if ( org.antlr.lang.isValue(this.singleElement) ) {
111 return this.toTree(this.singleElement);
130 return (org.antlr.lang.isValue(this.singleElement) && this.cursor < 1) ||
136 if ( org.antlr.lang.isValue(this.singleElement) ) {
/external/antlr/runtime/ObjC/Framework/
DRewriteRuleElementStream.m34 @synthesize singleElement;
73 singleElement = nil;
88 singleElement = nil;
104 singleElement = nil;
116 if ( singleElement && isSingleElement ) [singleElement release];
151 if (singleElement == nil) {
152 singleElement = anElement;
153 singleElement = [anElement retain];
158 [elements addObject:singleElement];
159 singleElement = nil; // balance previous retain in initializer/addElement
[all …]
DRewriteRuleElementStream.h35 id singleElement; variable
45 @property (assign) id singleElement;
/external/antlr/runtime/C/src/
Dantlr3rewritestreams.c154 if (stream->singleElement != NULL) in freeNodeRS()
156 tree = (pANTLR3_BASE_TREE)(stream->singleElement); in freeNodeRS()
163 stream->singleElement = NULL; in freeNodeRS()
237 stream->singleElement = NULL; in antlr3RewriteRuleElementStreamNewAE()
537 if (stream->singleElement == NULL) in add()
539 stream->singleElement = el; in add()
555 stream->elements->add (stream->elements, stream->singleElement, freePtr); in add()
557 stream->singleElement = NULL; in add()
647 return stream->toTree(stream, stream->singleElement); in _next()
659 if (stream->singleElement != NULL) in _next()
[all …]
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DRewriteRuleElementStream.as44 /** Cursor 0..n-1. If singleElement!=null, cursor is 0 until you next(),
50 protected var singleElement:Object;
106 if ( singleElement == null ) { // no elements yet, track w/o list
107 singleElement = el;
112 elements.push(singleElement);
113 singleElement = null;
148 return toTree(singleElement);
154 if ( singleElement!=null ) {
156 return toTree(singleElement);
181 return (singleElement != null && cursor < 1) ||
[all …]
/external/antlr/runtime/Python3/antlr3/
Dtree.py2571 self.singleElement = None
2591 self.singleElement = None
2619 if self.singleElement is None: # no elements yet, track w/o list
2620 self.singleElement = el
2625 self.elements.append(self.singleElement)
2626 self.singleElement = None
2665 return self.toTree(self.singleElement)
2671 if self.singleElement is not None:
2673 return self.toTree(self.singleElement)
2702 return ( (self.singleElement is not None and self.cursor < 1)
[all …]
/external/antlr/runtime/Python/antlr3/
Dtree.py2586 self.singleElement = None
2606 self.singleElement = None
2634 if self.singleElement is None: # no elements yet, track w/o list
2635 self.singleElement = el
2640 self.elements.append(self.singleElement)
2641 self.singleElement = None
2680 return self.toTree(self.singleElement)
2686 if self.singleElement is not None:
2688 return self.toTree(self.singleElement)
2717 return ( (self.singleElement is not None and self.cursor < 1)
[all …]
/external/antlr/runtime/C/include/
Dantlr3rewritestreams.h72 void * singleElement; member
/external/antlr/runtime/Cpp/include/
Dantlr3rewritestreams.inl299 /// Should be a count of one if singleElement is set. I copied this
301 /// against someone setting singleElement and forgetting to NULL it out