Home
last modified time | relevance | path

Searched refs:tokenType (Results 1 – 25 of 110) 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/runtime/ObjC/Framework/
DDebugTreeAdaptor.m148 - (id<BaseTree>) newTreeWithTokenType:(NSInteger)tokenType
150 id<BaseTree> newTree = [treeAdaptor newTreeWithTokenType:tokenType];
151 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:nil type:tokenType];
155 - (id<BaseTree>) newTreeWithTokenType:(NSInteger)tokenType text:(NSString *)tokenText
157 id<BaseTree> newTree = [treeAdaptor newTreeWithTokenType:tokenType text:tokenText];
158 [debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:tokenText type:tokenType];
161 - (id<BaseTree>) newTreeWithToken:(id<Token>)fromToken tokenType:(NSInteger)tokenType
163 id<BaseTree> newTree = [treeAdaptor newTreeWithToken:fromToken tokenType:tokenType];
164 …[debugListener createNode:[treeAdaptor uniqueIdForTree:newTree] text:fromToken.text type:tokenType
168 - (id<BaseTree>) newTreeWithToken:(id<Token>)fromToken tokenType:(NSInteger)tokenType text:(NSStrin…
[all …]
DTreeAdaptor.h107 - (id) createTree:(NSInteger)tokenType FromToken:(id<Token>)fromToken;
108 - (id) createTree:(NSInteger)tokenType FromToken:(id<Token>)fromToken Text:(NSString *)text;
109 - (id) createTree:(NSInteger)tokenType Text:(NSString *)text;
117 - (void) setType:(id)aNode Type:(NSInteger)tokenType;
/external/antlr/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()
DITreeAdaptor.cs206 object Create(int tokenType, IToken fromToken); in Create() argument
218 object Create(int tokenType, IToken fromToken, string text); in Create() argument
230 object Create(int tokenType, string text); in Create() argument
/external/antlr/runtime/Cpp/include/
Dantlr3commontreeadaptor.hpp71 TreeType* createTypeToken( ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
72 …TreeType* createTypeTokenText ( ANTLR_UINT32 tokenType, CommonTokenType* fromToken, const ANTL…
73 TreeType* createTypeText ( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
88 CommonTokenType* createToken( ANTLR_UINT32 tokenType, const ANTLR_UINT8* text);
147 TreeType* createTypeToken(ANTLR_UINT32 tokenType, CommonTokenType* fromToken);
148 …TreeType* createTypeTokenText(ANTLR_UINT32 tokenType, CommonTokenType* fromToken, ANTLR_UINT8* tex…
149 TreeType* createTypeText( ANTLR_UINT32 tokenType, ANTLR_UINT8* text);
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTreeAdaptor.java191 public Object create(int tokenType, Token fromToken) { in create() argument
194 fromToken.setType(tokenType); in create()
200 public Object create(int tokenType, Token fromToken, String text) { in create() argument
201 if (fromToken == null) return create(tokenType, text); in create()
203 fromToken.setType(tokenType); in create()
210 public Object create(int tokenType, String text) { in create() argument
211 Token fromToken = createToken(tokenType, text); in create()
281 public abstract Token createToken(int tokenType, String text); in createToken() argument
DTreeParser.java116 int tokenType = input.getTreeAdaptor().getType(look); in matchAny() local
117 while ( tokenType!=Token.EOF && !(tokenType==UP && level==0) ) { in matchAny()
120 tokenType = input.getTreeAdaptor().getType(look); in matchAny()
121 if ( tokenType == DOWN ) { in matchAny()
124 else if ( tokenType == UP ) { in matchAny()
/external/antlr/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/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 ) {
DBaseTreeAdaptor.js139 create: function(tokenType, fromToken) { argument
144 fromToken = this.createToken(tokenType, text);
149 fromToken.setType(tokenType);
156 fromToken.setType(tokenType);
/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/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/antlr/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/icu/icu4c/source/i18n/
Dplurrule_impl.h114 enum tokenType { enum
158 static tokenType getKeyType(const UnicodeString& token, tokenType type);
159 static tokenType charType(UChar ch);
165 tokenType type;
166 tokenType prevType;
233 PluralOperand tokenTypeToPluralOperand(tokenType tt);
319 tokenType digitsType = none; // n | i | v | f constraint.
/external/antlr/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/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugTreeAdaptor.java153 public Object create(int tokenType, Token fromToken) { in create() argument
154 Object node = adaptor.create(tokenType, fromToken); in create()
160 public Object create(int tokenType, Token fromToken, String text) { in create() argument
161 Object node = adaptor.create(tokenType, fromToken, text); in create()
167 public Object create(int tokenType, String text) { in create() argument
168 Object node = adaptor.create(tokenType, text); in create()
/external/antlr/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