Home
last modified time | relevance | path

Searched refs:newToken (Results 1 – 25 of 41) sorted by relevance

12

/external/smali/smali/src/main/java/org/jf/smali/
DsmaliFlexLexer.java3099 return newToken(EOF); in nextToken()
3142 private Token newToken(int type, String text, boolean hidden) { in newToken() method in smaliFlexLexer
3155 private Token newToken(int type, String text) { in newToken() method in smaliFlexLexer
3156 return newToken(type, text, false); in newToken()
3159 private Token newToken(int type, boolean hidden) { in newToken() method in smaliFlexLexer
3160 return newToken(type, yytext(), hidden); in newToken()
3163 private Token newToken(int type) { in newToken() method in smaliFlexLexer
3164 return newToken(type, yytext(), false); in newToken()
3612 return newToken(EOF); in yylex()
3646 { return newToken(POSITIVE_INTEGER_LITERAL); in yylex()
[all …]
/external/smali/smali/src/main/jflex/
DsmaliLexer.jflex49 return newToken(EOF);
92 private Token newToken(int type, String text, boolean hidden) {
105 private Token newToken(int type, String text) {
106 return newToken(type, text, false);
109 private Token newToken(int type, boolean hidden) {
110 return newToken(type, yytext(), hidden);
113 private Token newToken(int type) {
114 return newToken(type, yytext(), false);
251 ".class" { return newToken(CLASS_DIRECTIVE); }
252 ".super" { return newToken(SUPER_DIRECTIVE); }
[all …]
/external/antlr/runtime/C/src/
Dantlr3commontreeadaptor.c293 pANTLR3_COMMON_TOKEN newToken; in createToken() local
295 newToken = adaptor->tokenFactory->newToken(adaptor->tokenFactory); in createToken()
297 if (newToken != NULL) in createToken()
299 newToken->textState = ANTLR3_TEXT_CHARP; in createToken()
300 newToken->tokText.chars = (pANTLR3_UCHAR)text; in createToken()
301 newToken->setType(newToken, tokenType); in createToken()
302 newToken->input = adaptor->tokenFactory->input; in createToken()
303 newToken->strFactory = adaptor->strFactory; in createToken()
305 return newToken; in createToken()
329 pANTLR3_COMMON_TOKEN newToken; in createTokenFromToken() local
[all …]
Dantlr3commontoken.c62 static pANTLR3_COMMON_TOKEN newToken (void);
79 token = newToken(); in antlr3CommonTokenNew()
107 factory->newToken = newPoolToken; in antlr3TokenFactoryNew()
327 newToken(void) in newToken() function
/external/antlr/runtime/ObjC/Framework/test/runtime/token/
DCommonTokenTest.m17 CommonToken *token = [[CommonToken newToken] retain];
32 CommonToken *token = [[CommonToken newToken:TokenTypeUP] retain];
43 CommonToken *token = [[CommonToken newToken:TokenTypeUP Text:@"<UP>"] retain];
54 …CommonToken *token = [[CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 St…
66 …CommonToken *token = [[CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 St…
72 CommonToken *newToken = [[CommonToken newTokenWithToken:token] retain];
73 STAssertNotNil(newToken, @"New token is nil!");
74 …STAssertEquals(newToken.type, token.type, @"Tokens types do not match %d:%d!", newToken.type, toke…
75 STAssertEquals(newToken.line, token.line, @"Token lines do not match!");
76 STAssertEquals(newToken.index, token.index, @"Token indexes do not match");
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/
DJavaToken.java706 public void insert(JavaToken newToken) { in insert() argument
707 assertNotNull(newToken); in insert()
709 p.nextToken = newToken; in insert()
710 newToken.previousToken = p; in insert()
712 previousToken = newToken; in insert()
713 newToken.nextToken = this; in insert()
719 public void insertAfter(JavaToken newToken) { in insertAfter() argument
720 assertNotNull(newToken); in insertAfter()
722 n.previousToken = newToken; in insertAfter()
723 newToken.nextToken = n; in insertAfter()
[all …]
/external/antlr/runtime/ObjC/Framework/
DTreeAdaptor.m77 id<Token> newToken = [self createToken:fromToken];
78 [newToken setType:tokenType];
80 id newTree = [self create:newToken];
81 [newToken release];
93 id<Token> newToken = [self createToken:fromToken];
94 [newToken setText:tokenText];
96 id newTree = [self create:newToken];
97 [newToken release];
109 id<Token> newToken = [self createToken:tokenType text:tokenText];
111 id newTree = [self create:newToken];
[all …]
DCommonToken.m52 EOF_TOKEN = [CommonToken newToken:TokenTypeEOF Text:@"EOF"];
53 SKIP_TOKEN = [CommonToken newToken:TokenTypeInvalid Text:@"Skip"];
54 INVALID_TOKEN = [CommonToken newToken:TokenTypeInvalid Text:@"Invalid"];
75 + (CommonToken *) newToken
80 + (CommonToken *) newToken:(id<CharStream>)anInput Type:(NSInteger)aTType Channel:(NSInteger)aChann…
85 + (CommonToken *) newToken:(TokenType)tokenType
90 + (CommonToken *) newToken:(NSInteger)tokenType Text:(NSString *)tokenText
104 EOF_TOKEN = [[CommonToken newToken:TokenTypeEOF Text:@"EOF"] retain];
113 SKIP_TOKEN = [[CommonToken newToken:TokenTypeInvalid Text:@"Skip"] retain];
122 INVALID_TOKEN = [[CommonToken newToken:TokenTypeInvalid Text:@"Invalid"] retain];
DCommonToken.h54 + (id<Token>) newToken;
55 + (id<Token>) newToken:(id<CharStream>)anInput
60 + (id<Token>) newToken:(TokenType)aType;
61 + (id<Token>) newToken:(NSInteger)tokenType Text:(NSString *)tokenText;
DTreeParser.m112 return [CommonToken newToken:expectedTokenType Text:tokenText];
174 e.token = [CommonToken newToken:[adaptor getType:(CommonTree *)e.node]
DCommonTree.m113 token = [[CommonToken newToken:aTokenType] retain];
128 token = [[CommonToken newToken:aTokenType Text:theText] retain];
DParser.m108 CommonToken *t = [[CommonToken newToken:expectedTokenType Text:tokenText] retain];
/external/antlr/runtime/ObjC/Framework/test/runtime/TestRewriteRuleTokenStream/
DTestRewriteRuleTokenStream.m39 token1 = [CommonToken newToken:5];
40 token2 = [CommonToken newToken:6];
41 token3 = [CommonToken newToken:7];
42 token4 = [CommonToken newToken:8];
74 token1 = [CommonToken newToken:5];
75 token2 = [CommonToken newToken:6];
94 token1 = [CommonToken newToken:5];
95 token2 = [CommonToken newToken:6];
96 token3 = [CommonToken newToken:7];
97 token4 = [CommonToken newToken:8];
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DToken.java129 public static Token newToken(int ofKind, String image) in newToken() method in Token
137 public static Token newToken(int ofKind) in newToken() method in Token
139 return newToken(ofKind, null); in newToken()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DToken.java129 public static Token newToken(int ofKind, String image) in newToken() method in Token
137 public static Token newToken(int ofKind) in newToken() method in Token
139 return newToken(ofKind, null); in newToken()
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DToken.java138 public static Token newToken(int ofKind, String image) in newToken() method in Token
146 public static Token newToken(int ofKind) in newToken() method in Token
148 return newToken(ofKind, null); in newToken()
/external/antlr/runtime/Cpp/include/
Dantlr3commontreeadaptor.inl296 CommonTokenType* newToken = new CommonTokenType; local
298 if (newToken != NULL)
300 newToken->set_tokText( (const char*) text );
301 newToken->setType(tokenType);
303 return newToken;
311 CommonTokenType* newToken; local
313 newToken = new CommonTokenType;
315 if (newToken != NULL)
321 newToken->set_tokText( text );
322 newToken->setLine( fromToken->getLine() );
[all …]
/external/antlr/runtime/ObjC/Framework/test/runtime/tree/
DCommonTreeTest.m40 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
70 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
90 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
136 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
150 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
172 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
202 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
252 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
278 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
299 …CommonToken *token = [CommonToken newToken:stream Type:555 Channel:TokenChannelDefault Start:4 Sto…
[all …]
/external/apache-commons-bcel/src/examples/Mini/
DToken.java91 public static Token newToken(int ofKind) in newToken() method in Token
/external/antlr/runtime/C/include/
Dantlr3commontoken.h346 pANTLR3_COMMON_TOKEN (*newToken) (struct ANTLR3_TOKEN_FACTORY_struct * factory); member
/external/emma/core/java12/com/vladium/jcd/lib/
DTypes.java640 newToken (); in parameterDescriptor()
742 private void newToken () in newToken() method in Types.methodDescriptorCompiler
/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPp.cpp187 int newToken; in CPPdefine() local
194 newToken = mac.body.getToken(parseContext, &newPpToken); in CPPdefine()
200 if (oldToken != newToken || oldPpToken != newPpToken) { in CPPdefine()
205 } while (newToken != EndOfInput); in CPPdefine()
DPpScanner.cpp1296 int newToken = atomStrings.getAtom(ppToken.name); in tokenPaste() local
1297 if (newToken > 0) in tokenPaste()
1298 resultToken = newToken; in tokenPaste()
/external/angle/third_party/glslang/src/glslang/MachineIndependent/preprocessor/
DPp.cpp187 int newToken; in CPPdefine() local
194 newToken = mac.body.getToken(parseContext, &newPpToken); in CPPdefine()
200 if (oldToken != newToken || oldPpToken != newPpToken) { in CPPdefine()
205 } while (newToken != EndOfInput); in CPPdefine()
DPpScanner.cpp1296 int newToken = atomStrings.getAtom(ppToken.name); in tokenPaste() local
1297 if (newToken > 0) in tokenPaste()
1298 resultToken = newToken; in tokenPaste()

12