Home
last modified time | relevance | path

Searched refs:TokenType (Results 1 – 25 of 96) sorted by relevance

1234

/external/protobuf/csharp/src/Google.Protobuf/
DJsonToken.cs40 private static readonly JsonToken _true = new JsonToken(TokenType.True);
41 private static readonly JsonToken _false = new JsonToken(TokenType.False);
42 private static readonly JsonToken _null = new JsonToken(TokenType.Null);
43 private static readonly JsonToken startObject = new JsonToken(TokenType.StartObject);
44 private static readonly JsonToken endObject = new JsonToken(TokenType.EndObject);
45 private static readonly JsonToken startArray = new JsonToken(TokenType.StartArray);
46 private static readonly JsonToken endArray = new JsonToken(TokenType.EndArray);
47 private static readonly JsonToken endDocument = new JsonToken(TokenType.EndDocument);
60 return new JsonToken(TokenType.Name, stringValue: name); in Name()
65 return new JsonToken(TokenType.StringValue, stringValue: value); in Value()
[all …]
DJsonParser.cs165 if (token.Type != JsonToken.TokenType.StartObject) in Merge()
178 if (token.Type == JsonToken.TokenType.EndObject) in Merge()
182 if (token.Type != JsonToken.TokenType.Name) in Merge()
216 if (token.Type == JsonToken.TokenType.Null) in MergeField()
248 if (token.Type != JsonToken.TokenType.StartArray) in MergeRepeatedField()
257 if (token.Type == JsonToken.TokenType.EndArray) in MergeRepeatedField()
262 if (token.Type == JsonToken.TokenType.Null) in MergeRepeatedField()
274 if (token.Type != JsonToken.TokenType.StartObject) in MergeMapField()
291 if (token.Type == JsonToken.TokenType.EndObject) in MergeMapField()
314 if (token.Type == JsonToken.TokenType.Null) in ParseSingleValue()
[all …]
/external/antlr/runtime/Cpp/include/
Dantlr3tokenstream.hpp53 typedef typename ImplTraits::CommonTokenType TokenType; typedef in TokenSource
54 typedef TokenType CommonTokenType;
64 TokenType m_eofToken;
71 TokenType m_skipToken;
81 TokenType& get_eofToken();
82 const TokenType& get_eofToken() const;
83 TokenType& get_skipToken();
108 TokenType* nextToken();
129 TokenType* nextTokenStr();
145 typedef typename ImplTraits::CommonTokenType TokenType; typedef in TokenStream
[all …]
Dantlr3rewritestreams.hpp66 typedef typename SuperType::TokenType TokenType; typedef in RewriteRuleElementStream
67 typedef typename AllocPolicyType::template VectorType< TokenType* > ElementsType;
72 TokenType* m_singleElement;
106 …am(TreeAdaptorType* adaptor, RecognizerType* rec, ANTLR_UINT8* description, TokenType* oneElement);
119 void add(TokenType* el);
124 TokenType* next();
126 TokenType* nextToken();
127 TokenType* _next();
133 TokenType* dup( TokenType* el );
178 typedef typename ImplTraits::CommonTokenType TokenType; typedef in RewriteRuleTokenStream
[all …]
Dantlr3exception.hpp57 typedef typename StreamType::UnitType TokenType; typedef in ANTLR_ExceptionBase
89 const TokenType* m_token;
108 TokenType* m_node;
144 const TokenType* get_token() const;
148 TokenType* get_node() const;
159 void set_token( const TokenType* token );
163 void set_node( TokenType* node );
Dantlr3tokenstream.inl17 ANTLR_INLINE const typename TokenSource<ImplTraits>::TokenType& TokenSource<ImplTraits>::get_eofTok…
47 typename TokenSource<ImplTraits>::TokenType* TokenSource<ImplTraits>::nextTokenStr()
90 TokenType& teof = m_eofToken;
139 typename TokenSource<ImplTraits>::TokenType* TokenSource<ImplTraits>::nextToken()
209 TokenType* tok = state->get_token();
390 const typename TokenStream<ImplTraits>::TokenType* TokenStream<ImplTraits>::_LT(ANTLR_INT32 k)
420 TokenType& teof = cts->get_tokenSource()->get_eofToken();
445 TokenType& teof = cts->get_tokenSource()->get_eofToken();
460 const typename CommonTokenStream<ImplTraits>::TokenType* CommonTokenStream<ImplTraits>::LB(ANTLR_IN…
504 const typename CommonTokenStream<ImplTraits>::TokenType* CommonTokenStream<ImplTraits>::getToken(…
[all …]
Dantlr3cyclicdfa.hpp56 typedef typename StreamType::TokenType TokenType; typedef in CyclicDFA
57 typedef TokenType CommonTokenType;
Dantlr3rewritestreams.inl12 RecognizerType* rec, ANTLR_UINT8* description, TokenType* oneElement)
47 ANTLR_UINT8* description, TokenType* oneElement)
68 ANTLR_UINT8* description, TokenType* oneElement)
89 ANTLR_UINT8* description, TokenType* oneElement)
109 void RewriteRuleElementStream<ImplTraits, SuperType>::add(TokenType* el)
135 typename RewriteRuleElementStream<ImplTraits, SuperType>::TokenType*
208 typename RewriteRuleElementStream<ImplTraits, SuperType>::TokenType*
215 typename RewriteRuleElementStream<ImplTraits, SuperType>::TokenType*
/external/owasp/sanitizer/src/tests/org/owasp/html/
DCssFuzzerTest.java37 import org.owasp.html.CssTokens.TokenType;
144 CssTokens.TokenType type = it.type(); in testUnderStress()
174 private static final EnumMap<CssTokens.TokenType, Pattern> TOKEN_TYPE_FILTERS
175 = Maps.newEnumMap(CssTokens.TokenType.class);
182 CssTokens.TokenType.AT, Pattern.compile("@" + IDENT)); in TOKEN_TYPE_FILTERS.put()
184 CssTokens.TokenType.COLON, Pattern.compile(":")); in TOKEN_TYPE_FILTERS.put()
186 CssTokens.TokenType.COLUMN, Pattern.compile("\\|\\|")); in TOKEN_TYPE_FILTERS.put()
188 CssTokens.TokenType.COMMA, Pattern.compile(",")); in TOKEN_TYPE_FILTERS.put()
190 CssTokens.TokenType.DELIM, in TOKEN_TYPE_FILTERS.put()
193 CssTokens.TokenType.DIMENSION, Pattern.compile(NUMBER + "[a-z]+")); in TOKEN_TYPE_FILTERS.put()
[all …]
DCssTokensTest.java37 import org.owasp.html.CssTokens.TokenType;
41 import static org.owasp.html.CssTokens.TokenType.*;
61 List<CssTokens.TokenType> types = Lists.newArrayList(); in testBracketIndices()
200 CssTokens.TokenType type = IDENT; in testIdentReencoding()
204 type = TokenType.valueOf(golden.substring(colon + 1)); in testIdentReencoding()
405 + CssTokens.TokenType.valueOf(golden.substring(colon+1)).name()); in assertTokens()
/external/owasp/sanitizer/src/main/org/owasp/html/
DCssTokens.java77 private final TokenType[] tokenTypes;
144 if (type() != TokenType.WHITESPACE) { return true; } in hasTokenAfterSpace()
151 public TokenType type() { in type()
176 TokenType[] tokenTypes) { in CssTokens()
183 public enum TokenType { enum in CssTokens
283 private static final TokenType[] ZERO_TYPES = new TokenType[0];
299 private List<TokenType> tokenTypes = null;
335 TokenType openBracket(char bracketChar) { in openBracket()
337 TokenType type; in openBracket()
339 case '(': close = ')'; type = TokenType.LEFT_PAREN; break; in openBracket()
[all …]
/external/syzkaller/vendor/golang.org/x/oauth2/
Dtoken.go37 TokenType string `json:"token_type,omitempty"` member
58 if strings.EqualFold(t.TokenType, "bearer") {
61 if strings.EqualFold(t.TokenType, "mac") {
64 if strings.EqualFold(t.TokenType, "basic") {
67 if t.TokenType != "" {
68 return t.TokenType
142 TokenType: t.TokenType,
/external/protobuf/src/google/protobuf/util/internal/
Djson_stream_parser.h87 enum TokenType { enum
133 util::Status ParseValue(TokenType type);
161 util::Status ParseEntry(TokenType type);
164 util::Status ParseEntryMid(TokenType type);
167 util::Status ParseObjectMid(TokenType type);
173 util::Status ParseArrayValue(TokenType type);
176 util::Status ParseArrayMid(TokenType type);
201 TokenType GetNextTokenType();
/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime.Tests/
DAntlr.Runtime.Tree.Tests.pas91 function CreateToken(const TokenType: Integer; const Text: String): IToken; in CreateToken()
621 I, TokenType: Integer;
629 TokenType := Nodes.TreeAdaptor.GetNodeType(T);
630 if (TokenType <> TToken.DOWN) and (TokenType <> TToken.UP) then
633 Buf.Append(TokenType)
749 CheckEquals(Node.TokenType, I);
760 CheckEquals(Node.TokenType, N + I);
826 CheckEquals((Stream.LT(1) as ITree).TokenType,101);
827 CheckEquals((Stream.LT(2) as ITree).TokenType,TToken.DOWN);
828 CheckEquals((Stream.LT(3) as ITree).TokenType,102);
[all …]
/external/antlr/runtime/ObjC/Framework/examples/polydiff/
DSimplifier.m571 …char_literal1=(CommonTree *)[self match:input TokenType:8 Follow:FOLLOW_8_in_poly52]; if ( state.f…
575 … [self match:input TokenType:TokenTypeDOWN Follow:nil]; if ( state.failed ) return retval;
579 …a=(CommonTree *)[self match:input TokenType:INT Follow:FOLLOW_INT_in_poly56]; if ( state.failed ) …
585 …b=(CommonTree *)[self match:input TokenType:INT Follow:FOLLOW_INT_in_poly60]; if ( state.failed ) …
589 … [self match:input TokenType:TokenTypeUP Follow:nil]; if ( state.failed ) return retval;
640 …char_literal2=(CommonTree *)[self match:input TokenType:8 Follow:FOLLOW_8_in_poly73]; if ( state.f…
644 … [self match:input TokenType:TokenTypeDOWN Follow:nil]; if ( state.failed ) return retval;
655 …char_literal3=(CommonTree *)[self match:input TokenType:8 Follow:FOLLOW_8_in_poly76]; if ( state.f…
659 … [self match:input TokenType:TokenTypeDOWN Follow:nil]; if ( state.failed ) return retval;
663 …a=(CommonTree *)[self match:input TokenType:INT Follow:FOLLOW_INT_in_poly80]; if ( state.failed ) …
[all …]
DPolyDifferentiator.m344 … char_literal1=(CommonTree *)[self match:input TokenType:8 Follow:FOLLOW_8_in_poly44];
351 [self match:input TokenType:TokenTypeDOWN Follow:nil];
377 [self match:input TokenType:TokenTypeUP Follow:nil];
400 … MULT4=(CommonTree *)[self match:input TokenType:MULT Follow:FOLLOW_MULT_in_poly55];
404 [self match:input TokenType:TokenTypeDOWN Follow:nil];
408 INT5=(CommonTree *)[self match:input TokenType:INT Follow:FOLLOW_INT_in_poly57];
414 ID6=(CommonTree *)[self match:input TokenType:ID Follow:FOLLOW_ID_in_poly59];
418 [self match:input TokenType:TokenTypeUP Follow:nil];
467 … MULT7=(CommonTree *)[self match:input TokenType:MULT Follow:FOLLOW_MULT_in_poly71];
471 [self match:input TokenType:TokenTypeDOWN Follow:nil];
[all …]
DPolyPrinter.m241 [self match:input TokenType:8 Follow:FOLLOW_8_in_poly43];
243 [self match:input TokenType:DOWN Follow:nil];
259 [self match:input TokenType:UP Follow:nil];
275 [self match:input TokenType:MULT Follow:FOLLOW_MULT_in_poly74];
277 [self match:input TokenType:DOWN Follow:nil];
293 [self match:input TokenType:UP Follow:nil];
309 [self match:input TokenType:9 Follow:FOLLOW_9_in_poly104];
311 [self match:input TokenType:DOWN Follow:nil];
327 [self match:input TokenType:UP Follow:nil];
343 INT1=(CommonTree *)[self match:input TokenType:INT Follow:FOLLOW_INT_in_poly134];
[all …]
/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.Tree.pas217 … function CreateNode(const TokenType: Integer; const FromToken: IToken): IANTLRInterface; overload;
225 function CreateNode(const TokenType: Integer; const FromToken: IToken;
234 function CreateNode(const TokenType: Integer; const Text: String): IANTLRInterface; overload;
507 property TokenType: Integer read GetTokenType; property
587 property TokenType: Integer read GetTokenType; property
653 function CreateToken(const TokenType: Integer; const Text: String): IToken; overload;
956 …function Find(const T: IANTLRInterface; const TokenType: Integer): IList<IANTLRInterface>; overloa…
961 … function FindFirst(const T: IANTLRInterface; const TokenType: Integer): IANTLRInterface; overload;
973 procedure Visit(const T: IANTLRInterface; const TokenType: Integer;
1282 …function CreateNode(const TokenType: Integer; const FromToken: IToken): IANTLRInterface; overload;… in CreateNode()
[all …]
/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCTP.m398 [self match:input TokenType:FUNC_DECL Follow:FOLLOW_FUNC_DECL_in_declaration87];
400 [self match:input TokenType:DOWN Follow:nil];
410 [self match:input TokenType:UP Follow:nil];
420 [self match:input TokenType:FUNC_DEF Follow:FOLLOW_FUNC_DEF_in_declaration101];
422 [self match:input TokenType:DOWN Follow:nil];
440 [self match:input TokenType:UP Follow:nil];
482 [self match:input TokenType:VAR_DEF Follow:FOLLOW_VAR_DEF_in_variable126];
484 [self match:input TokenType:DOWN Follow:nil];
502 [self match:input TokenType:UP Follow:nil];
541 [self match:input TokenType:K_ID Follow:FOLLOW_K_ID_in_declarator150];
[all …]
DSimpleCWalker.m398 [self match:input TokenType:FUNC_DECL Follow:FOLLOW_FUNC_DECL_in_declaration87];
400 [self match:input TokenType:DOWN Follow:nil];
410 [self match:input TokenType:UP Follow:nil];
420 [self match:input TokenType:FUNC_DEF Follow:FOLLOW_FUNC_DEF_in_declaration101];
422 [self match:input TokenType:DOWN Follow:nil];
440 [self match:input TokenType:UP Follow:nil];
482 [self match:input TokenType:VAR_DEF Follow:FOLLOW_VAR_DEF_in_variable126];
484 [self match:input TokenType:DOWN Follow:nil];
502 [self match:input TokenType:UP Follow:nil];
541 [self match:input TokenType:K_ID Follow:FOLLOW_K_ID_in_declarator150];
[all …]
/external/jsoncpp/include/json/
Dreader.h157 enum TokenType { enum
176 TokenType type_;
190 bool expectToken(TokenType type, Token& token, const char* message);
217 bool recoverFromError(TokenType skipUntilToken);
220 TokenType skipUntilToken);
/external/syzkaller/vendor/golang.org/x/oauth2/internal/
Dtoken.go38 TokenType string member
61 TokenType string `json:"token_type"` member
216 TokenType: vals.Get("token_type"),
238 TokenType: tj.TokenType,
/external/antlr/runtime/ObjC/Framework/
DBaseRecognizer.h104 - (id) match:(id<IntStream>)anInput TokenType:(NSInteger)ttype Follow:(ANTLRBitSet *)follow;
106 - (BOOL) mismatchIsUnwantedToken:(id<IntStream>)anInput TokenType:(NSInteger) ttype;
130 TokenType:(NSInteger)ttype
140 TokenType:(NSInteger) expectedTokenType
144 - (void) consumeUntilTType:(id<IntStream>)anInput TokenType:(NSInteger)ttype;
/external/antlr/runtime/ObjC/Framework/examples/scopes/
DSymbolTableParser.m355 [self match:input TokenType:12 Follow:FOLLOW_12_in_method116];
357 [self match:input TokenType:ID Follow:FOLLOW_ID_in_method118];
359 [self match:input TokenType:7 Follow:FOLLOW_7_in_method120];
361 [self match:input TokenType:8 Follow:FOLLOW_8_in_method122];
412 [self match:input TokenType:13 Follow:FOLLOW_13_in_block153];
478 [self match:input TokenType:14 Follow:FOLLOW_14_in_block165];
541 [self match:input TokenType:ID Follow:FOLLOW_ID_in_stat189];
543 [self match:input TokenType:10 Follow:FOLLOW_10_in_stat191];
545 [self match:input TokenType:INT Follow:FOLLOW_INT_in_stat193];
547 [self match:input TokenType:9 Follow:FOLLOW_9_in_stat195];
[all …]
/external/smali/smalidea/src/main/java/org/jf/smalidea/
DSmaliLexer.java35 import com.intellij.psi.TokenType;
86 return TokenType.WHITE_SPACE; in mapTokenTypeToElementType()
89 return TokenType.BAD_CHARACTER; in mapTokenTypeToElementType()

1234