Home
last modified time | relevance | path

Searched refs:discardSet (Results 1 – 9 of 9) sorted by relevance

/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DLegacyCommonTokenStream.cs67 protected Dictionary<int, int> discardSet; field in Antlr.Runtime.LegacyCommonTokenStream
149 if (discardSet != null && in FillBuffer()
150 discardSet.ContainsKey(t.Type)) { in FillBuffer()
217 if (discardSet == null) { in DiscardTokenType()
218 discardSet = new Dictionary<int, int>(); in DiscardTokenType()
220 discardSet.Add(ttype, ttype); in DiscardTokenType()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DLegacyCommonTokenStream.cs66 protected List<int> discardSet; field in Antlr.Runtime.LegacyCommonTokenStream
157 if ( discardSet != null && in FillBuffer()
158 discardSet.Contains( t.Type ) ) in FillBuffer()
238 if ( discardSet == null ) in DiscardTokenType()
240 discardSet = new List<int>(); in DiscardTokenType()
242 discardSet.Add( ttype ); in DiscardTokenType()
/external/antlr/runtime/C/src/
Dantlr3tokenstream.c143 if (stream->discardSet != NULL) in antlr3CTSFree()
145 stream->discardSet->free(stream->discardSet); in antlr3CTSFree()
146 stream->discardSet = NULL; in antlr3CTSFree()
169 if (cts->discardSet != NULL) in reset()
171 cts->discardSet->free(cts->discardSet); in reset()
172 cts->discardSet = NULL; in reset()
244 stream->discardSet = NULL; in antlr3CommonTokenStreamSourceNew()
682 if (tokenStream->discardSet == NULL) in discardTokenType()
684 tokenStream->discardSet = antlr3ListNew(31); in discardTokenType()
690 …tokenStream->discardSet->put(tokenStream->discardSet, ttype, ANTLR3_FUNC_PTR((ANTLR3_UINT32)ttype … in discardTokenType()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DLegacyCommonTokenStream.java51 protected Set<Integer> discardSet; field in LegacyCommonTokenStream
107 if ( discardSet!=null && in fillBuffer()
108 discardSet.contains(new Integer(t.getType())) ) in fillBuffer()
174 if ( discardSet==null ) { in discardTokenType()
175 discardSet = new HashSet<Integer>(); in discardTokenType()
177 discardSet.add(ttype); in discardTokenType()
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DCommonTokenStream.js53 if ( this.discardSet && this.discardSet[t.getType()] )
120 if ( !this.discardSet ) {
121 this.discardSet = {};
123 this.discardSet[ttype] = true;
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DCommonTokenStream.as49 protected var discardSet:Array;
93 if ( discardSet !=null &&
94 discardSet[t.type] == true )
159 if ( discardSet==null ) {
160 discardSet = new Array();
162 discardSet[ttype] = true;
/external/antlr/runtime/C/include/
Dantlr3tokenstream.h222 pANTLR3_LIST discardSet; member
/external/antlr/runtime/Python3/antlr3/
Dstreams.py593 self.discardSet = set()
644 if self.discardSet and t.type in self.discardSet:
720 self.discardSet.add(ttype)
/external/antlr/runtime/Python/antlr3/
Dstreams.py639 self.discardSet = set()
690 if self.discardSet is not None and t.type in self.discardSet:
774 self.discardSet.add(ttype)