Home
last modified time | relevance | path

Searched refs:tokenType (Results 1 – 25 of 119) sorted by relevance

12345

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/concretesyntaxmodel/
DCsmToken.java34 private final int tokenType; field in CsmToken
43 return tokenType; in getTokenType()
53 public CsmToken(int tokenType) { in CsmToken() argument
54 this.tokenType = tokenType; in CsmToken()
55 this.content = GeneratedJavaParserConstants.tokenImage[tokenType]; in CsmToken()
59 if (isEndOfLineToken(tokenType)) { in CsmToken()
61 } else if (isSpaceOrTab(tokenType)) { in CsmToken()
66 public CsmToken(int tokenType, String content) { in CsmToken() argument
67 this.tokenType = tokenType; in CsmToken()
71 public CsmToken(int tokenType, TokenContentCalculator tokenContentCalculator) { in CsmToken() argument
[all …]
DCsmElement.java51 static CsmElement string(int tokenType, String content) { in string() argument
52 return new CsmToken(tokenType, content); in string()
55 static CsmElement string(int tokenType) { in string() argument
56 return new CsmToken(tokenType); in string()
67 static CsmElement token(int tokenType) { in token() argument
68 return new CsmToken(tokenType); in token()
71 static CsmElement token(int tokenType, CsmToken.TokenContentCalculator tokenContentCalculator) { in token() argument
72 return new CsmToken(tokenType, tokenContentCalculator); in token()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRDebugTreeAdaptor.m148 - (id<ANTLRBaseTree>) newANTLRTreeWithTokenType:(NSInteger)tokenType
150 id<ANTLRBaseTree> newTree = [treeAdaptor newANTLRTreeWithTokenType:tokenType];
151 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:nil type:tokenType];
155 - (id<ANTLRBaseTree>) newANTLRTreeWithTokenType:(NSInteger)tokenType text:(NSString *)tokenText
157 id<ANTLRBaseTree> newTree = [treeAdaptor newANTLRTreeWithTokenType:tokenType text:tokenText];
158 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:tokenText type:tokenType];
161 - (id<ANTLRBaseTree>) newANTLRTreeWithToken:(id<ANTLRToken>)fromToken tokenType:(NSInteger)tokenType
163 id<ANTLRBaseTree> newTree = [treeAdaptor newANTLRTreeWithToken:fromToken tokenType:tokenType];
164 …[debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:fromToken.text type:tokenType
168 …LRBaseTree>) newANTLRTreeWithToken:(id<ANTLRToken>)fromToken tokenType:(NSInteger)tokenType text:(…
[all …]
DANTLRTreeAdaptor.h107 - (id) createTree:(NSInteger)tokenType FromToken:(id<ANTLRToken>)fromToken;
108 - (id) createTree:(NSInteger)tokenType FromToken:(id<ANTLRToken>)fromToken Text:(NSString *)text;
109 - (id) createTree:(NSInteger)tokenType Text:(NSString *)text;
117 - (void) setType:(id)aNode Type:(NSInteger)tokenType;
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTreeAdaptor.cs198 public virtual object Create(int tokenType, IToken fromToken) { in Create() argument
201 fromToken.Type = tokenType; in Create()
206 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create() argument
208 return Create(tokenType, text); in Create()
211 fromToken.Type = tokenType; in Create()
217 public virtual object Create(int tokenType, string text) { in Create() argument
218 IToken fromToken = CreateToken(tokenType, text); in Create()
283 public abstract IToken CreateToken(int tokenType, string text); in CreateToken() argument
DTreeWizard.cs565 int tokenType = adaptor.getType( node ); in fillReverseIndex()
567 tokenTypesToReverseIndex.Contains( tokenType ) ) ) in fillReverseIndex()
573 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in fillReverseIndex()
577 tokenTypeToStreamIndexesMap[tokenType] = indexes; in fillReverseIndex()
596 public void reverseIndex( int tokenType ) in reverseIndex() argument
606 tokenTypesToReverseIndex.add( tokenType ); in reverseIndex()
637 int tokenType = adaptor.getType( node ); in getNodeIndex()
639 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in getNodeIndex()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java182 public Object create(int tokenType, Token fromToken) { in create() argument
185 fromToken.setType(tokenType); in create()
190 public Object create(int tokenType, Token fromToken, String text) { in create() argument
191 if (fromToken == null) return create(tokenType, text); in create()
193 fromToken.setType(tokenType); in create()
199 public Object create(int tokenType, String text) { in create() argument
200 Token fromToken = createToken(tokenType, text); in create()
261 public abstract Token createToken(int tokenType, String text); in createToken() argument
DTreeParser.java111 int tokenType = input.getTreeAdaptor().getType(look); in matchAny() local
112 while ( tokenType!=Token.EOF && !(tokenType==UP && level==0) ) { in matchAny()
115 tokenType = input.getTreeAdaptor().getType(look); in matchAny()
116 if ( tokenType == DOWN ) { in matchAny()
119 else if ( tokenType == UP ) { in matchAny()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3basetreeadaptor.c58 …REE createTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
59 …E dbgCreateTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
60 … createTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
61 …bgCreateTypeTokenText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
62 …TREE createTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
63 …EE dbgCreateTypeText (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
760 createTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKEN f… in createTypeToken() argument
768 fromToken->setType(fromToken, tokenType); in createTypeToken()
775 dbgCreateTypeToken (pANTLR3_BASE_TREE_ADAPTOR adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_TOKE… in dbgCreateTypeToken() argument
779 t = createTypeToken(adaptor, tokenType, fromToken); in dbgCreateTypeToken()
[all …]
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DTreeParser.js64 tokenType = this.input.getTreeAdaptor().getType(look);
65 while ( tokenType!==org.antlr.runtime.Token.EOF &&
66 !(tokenType===TP.UP && level===0) )
70 tokenType = this.input.getTreeAdaptor().getType(look);
71 if ( tokenType === TP.DOWN ) {
74 else if ( tokenType === TP.UP ) {
/external/smali/smalidea/src/main/java/org/jf/smalidea/
DSmaliLexer.java84 private IElementType mapTokenTypeToElementType(int tokenType) { in mapTokenTypeToElementType() argument
85 if (tokenType == smaliParser.WHITE_SPACE) { in mapTokenTypeToElementType()
88 if (tokenType == smaliParser.INVALID_TOKEN) { in mapTokenTypeToElementType()
91 if (tokenType == smaliParser.EOF) { in mapTokenTypeToElementType()
94 return SmaliTokens.getElementType(tokenType); in mapTokenTypeToElementType()
DSmaliHighlighter.java46 @NotNull @Override public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { in getTokenHighlights() argument
47 if (tokenType instanceof SmaliLexicalElementType) { in getTokenHighlights()
48 return ((SmaliLexicalElementType) tokenType).textAttributesKeys; in getTokenHighlights()
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DEDToken.h32 enum tokenType { enum
48 enum tokenType Type;
70 enum tokenType type,
93 enum tokenType type() const;
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/
DBaseTreeAdaptor.cs242 public virtual object Create( int tokenType, IToken fromToken ) in Create() argument
245 fromToken.Type = tokenType; in Create()
250 public virtual object Create( int tokenType, IToken fromToken, string text ) in Create() argument
253 return Create( tokenType, text ); in Create()
256 fromToken.Type = tokenType; in Create()
273 public virtual object Create( int tokenType, string text ) in Create() argument
275 IToken fromToken = CreateToken( tokenType, text ); in Create()
371 public abstract IToken CreateToken( int tokenType, string text ); in CreateToken() argument
DTreeWizard.cs642 int tokenType = adaptor.getType( node ); in fillReverseIndex()
644 tokenTypesToReverseIndex.Contains( tokenType ) ) ) in fillReverseIndex()
650 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in fillReverseIndex()
654 tokenTypeToStreamIndexesMap[tokenType] = indexes; in fillReverseIndex()
673 public void reverseIndex( int tokenType ) in reverseIndex() argument
683 tokenTypesToReverseIndex.add( tokenType ); in reverseIndex()
714 int tokenType = adaptor.getType( node ); in getNodeIndex()
716 … if ( !tokenTypeToStreamIndexesMap.TryGetValue( tokenType, out indexes ) || indexes == null ) in getNodeIndex()
/external/nist-sip/java/gov/nist/core/
DLexerCore.java181 tok.tokenType = type.intValue(); in peekNextToken()
183 tok.tokenType = ID; in peekNextToken()
188 tok.tokenType = ALPHA; in peekNextToken()
190 tok.tokenType = DIGIT; in peekNextToken()
192 tok.tokenType = (int) nextChar; in peekNextToken()
216 this.currentMatch.tokenType = ID; in match()
223 this.currentMatch.tokenType = SAFE; in match()
234 this.currentMatch.tokenType = tok; in match()
245 this.currentMatch.tokenType = tok; in match()
254 this.currentMatch.tokenType = tok; in match()
DToken.java39 protected int tokenType; field in Token
44 return this.tokenType; in getTokenType()
47 return "tokenValue = " + tokenValue + "/tokenType = " + tokenType; in toString()
/external/icu/icu4c/source/i18n/
Dplurrule_impl.h108 enum tokenType { enum
152 static tokenType getKeyType(const UnicodeString& token, tokenType type);
153 static tokenType charType(UChar ch);
159 tokenType type;
160 tokenType prevType;
228 PluralOperand tokenTypeToPluralOperand(tokenType tt);
311 tokenType digitsType; // n | i | v | f constraint.
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugTreeAdaptor.cs146 public virtual object Create(int tokenType, IToken fromToken) { in Create() argument
147 object node = adaptor.Create(tokenType, fromToken); in Create()
152 public virtual object Create(int tokenType, IToken fromToken, string text) { in Create() argument
153 object node = adaptor.Create(tokenType, fromToken, text); in Create()
158 public virtual object Create(int tokenType, string text) { in Create() argument
159 object node = adaptor.Create(tokenType, text); in Create()
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugTreeAdaptor.java142 public Object create(int tokenType, Token fromToken) { in create() argument
143 Object node = adaptor.create(tokenType, fromToken); in create()
148 public Object create(int tokenType, Token fromToken, String text) { in create() argument
149 Object node = adaptor.create(tokenType, fromToken, text); in create()
154 public Object create(int tokenType, String text) { in create() argument
155 Object node = adaptor.create(tokenType, text); in create()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugTreeAdaptor.cs186 public virtual object Create( int tokenType, IToken fromToken ) in Create() argument
188 object node = adaptor.Create( tokenType, fromToken ); in Create()
193 public virtual object Create( int tokenType, IToken fromToken, string text ) in Create() argument
195 object node = adaptor.Create( tokenType, fromToken, text ); in Create()
200 public virtual object Create( int tokenType, string text ) in Create() argument
202 object node = adaptor.Create( tokenType, text ); in Create()
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRCommonTree.h49 + (ANTLRCommonTree *) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
52 + (id<ANTLRTree>) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
53 …d<ANTLRTree>) newANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType;
54 …ANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType Text:(NSString *…
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRCommonTree.h49 + (ANTLRCommonTree *) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
52 + (id<ANTLRTree>) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
53 …d<ANTLRTree>) newANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType;
54 …ANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType Text:(NSString *…
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRCommonTree.h49 + (ANTLRCommonTree *) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
52 + (id<ANTLRTree>) newANTLRCommonTreeWithTokenType:(NSInteger)tokenType;
53 …d<ANTLRTree>) newANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType;
54 …ANTLRCommonTreeWithToken:(id<ANTLRToken>)fromToken TokenType:(NSInteger)tokenType Text:(NSString *…
/external/antlr/antlr-3.4/runtime/C/include/
Dantlr3basetreeadaptor.h94 …oken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
95 …nText) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_COMMON_…
96 …Text) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…
119 …ken) (struct ANTLR3_BASE_TREE_ADAPTOR_struct * adaptor, ANTLR3_UINT32 tokenType, pANTLR3_UINT8 t…

12345