/external/chromium_org/third_party/angle/src/compiler/preprocessor/ |
Lexer.h | 13 struct Token; 20 virtual void lex(Token *token) = 0;
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
indentation.py | 44 # For each token, we determine if it is a block or continuation token. 60 """Stores information about a token. 63 token: The token 64 is_block: Whether the token represents a block indentation. 65 is_transient: Whether the token should be automatically removed without 66 finding a matching end token. 67 overridden_by: TokenInfo for a token that overrides the indentation that 68 this token would require [all...] |
ecmalintrules.py | 101 def HandleMissingParameterDoc(self, token, param_name): 109 last_token: The last token in the line. 111 # Start from the last token so that we have the flag object attached to 114 token = last_token 119 while token and token.line_number == line_number: 120 if state.IsTypeToken(token): 121 line.insert(0, 'x' * len(token.string)) 122 elif token.type in (Type.IDENTIFIER, Type.NORMAL): 124 line.insert(0, token.string.replace('.', ' ') [all...] |
/external/chromium_org/third_party/closure_linter/closure_linter/ |
indentation.py | 44 # For each token, we determine if it is a block or continuation token. 60 """Stores information about a token. 63 token: The token 64 is_block: Whether the token represents a block indentation. 65 is_transient: Whether the token should be automatically removed without 66 finding a matching end token. 67 overridden_by: TokenInfo for a token that overrides the indentation that 68 this token would require [all...] |
ecmalintrules.py | 101 def HandleMissingParameterDoc(self, token, param_name): 109 last_token: The last token in the line. 111 # Start from the last token so that we have the flag object attached to 114 token = last_token 119 while token and token.line_number == line_number: 120 if state.IsTypeToken(token): 121 line.insert(0, 'x' * len(token.string)) 122 elif token.type in (Type.IDENTIFIER, Type.NORMAL): 124 line.insert(0, token.string.replace('.', ' ') [all...] |
/external/srec/srec/EventLog/include/ |
SR_EventLog.h | 55 * Log a string token using the basic logging level. 59 log->token(log, tokenName, value) : ESR_SUCCESS ) \ 62 * Log an integer token using the basic logging level. 69 * Log a pointer token using the basic logging level. 76 * Log a uint16 token using the basic logging level. 83 * Log a size_t token using the basic logging level. 90 * Log a boolean token using the basic logging level. 97 * Log a float token using the basic logging level. 111 * Log a string token using the audio logging level. 115 log->token(log, tokenName, value) : ESR_SUCCESS ) 150 ESR_ReturnCode(*token)(struct SR_EventLog_t* self, const LCHAR* token, const LCHAR *value); member in struct:SR_EventLog_t [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/ |
t006lexer.html | 29 token; 31 token = lexer.nextToken(); 32 assertEquals(token.getType(), lexer.FOO); 33 assertEquals(token.getStartIndex(), 0); 34 assertEquals(token.getStopIndex(), 1); 35 assertEquals(token.getText(), "fo"); 37 token = lexer.nextToken(); 38 assertEquals(token.getType(), lexer.FOO); 39 assertEquals(token.getStartIndex(), 2); 40 assertEquals(token.getStopIndex(), 7) [all...] |
t007lexer.html | 29 token; 31 token = lexer.nextToken(); 32 assertEquals(token.getType(), lexer.FOO); 33 assertEquals(token.getStartIndex(), 0); 34 assertEquals(token.getStopIndex(), 1); 35 assertEquals(token.getText(), "fo"); 37 token = lexer.nextToken(); 38 assertEquals(token.getType(), lexer.FOO); 39 assertEquals(token.getStartIndex(), 2); 40 assertEquals(token.getStopIndex(), 12) [all...] |
t008lexer.html | 29 token; 31 token = lexer.nextToken(); 32 assertEquals(token.getType(), lexer.FOO); 33 assertEquals(token.getStartIndex(), 0); 34 assertEquals(token.getStopIndex(), 0); 35 assertEquals(token.getText(), "f"); 37 token = lexer.nextToken(); 38 assertEquals(token.getType(), lexer.FOO); 39 assertEquals(token.getStartIndex(), 1); 40 assertEquals(token.getStopIndex(), 2) [all...] |
t009lexer.html | 29 token; 31 token = lexer.nextToken(); 32 assertEquals(token.getType(), lexer.DIGIT); 33 assertEquals(token.getStartIndex(), 0); 34 assertEquals(token.getStopIndex(), 0); 35 assertEquals(token.getText(), "0"); 37 token = lexer.nextToken(); 38 assertEquals(token.getType(), lexer.DIGIT); 39 assertEquals(token.getStartIndex(), 1); 40 assertEquals(token.getStopIndex(), 1) [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/ |
CommonTree.js | 1 /** A tree node that is wrapper for a Token object. After 3.0 release 8 /** What token indexes bracket all tokens associated with this node 20 /** A single token is the payload */ 21 this.token = null; 25 this.token = node.token; 29 this.token = node; 33 /** A tree node that is wrapper for a Token object. */ 36 return this.token; 44 return !this.token; [all...] |
/external/chromium_org/third_party/angle/tests/preprocessor_tests/ |
space_test.cpp | 8 #include "Token.h" 18 pp::Token token; local 20 mPreprocessor.lex(&token); 21 EXPECT_EQ(pp::Token::IDENTIFIER, token.type); 22 EXPECT_EQ("foo", token.text); 23 // The whitespace character is however recorded with the next token. 24 EXPECT_TRUE(token.hasLeadingSpace()); 81 // next token. This test makes sure that a token is not incorrectly marke 88 pp::Token token; local [all...] |
location_test.cpp | 8 #include "Token.h" 20 pp::Token token; local 21 mPreprocessor.lex(&token); 22 EXPECT_EQ(pp::Token::IDENTIFIER, token.type); 23 EXPECT_EQ("foo", token.text); 25 EXPECT_EQ(location.file, token.location.file); 26 EXPECT_EQ(location.line, token.location.line); 84 pp::Token token local 114 pp::Token token; local 132 pp::Token token; local 150 pp::Token token; local 266 pp::Token token; local 290 pp::Token token; local [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
DateTimeFormatTest.cpp | 40 struct Token { 45 Token(FieldType fieldType, int count = 1) 52 Token(const String& string) 59 bool operator==(const Token& other) const 77 return String::format("Token(%d, %d)", fieldType, count); 86 explicit Tokens(const Vector<Token> tokens) 93 m_tokens.append(Token(string)); 96 explicit Tokens(Token token1) 101 Tokens(Token token1, Token token2 [all...] |
/external/chromium_org/chrome/browser/resources/cryptotoken/ |
requestqueue.js | 11 * Represents a queued request. Once given a token, call complete() once the 53 /** @return {boolean} Whether this token has already completed. */ 69 * Inserts this token into the queue. 70 * @param {RequestToken} token Queue token 73 RequestQueue.prototype.insertToken_ = function(token) { 75 this.head_ = token; 76 this.tail_ = token; 79 this.tail_.next = token; 80 token.prev = this.tail_ [all...] |
/external/chromium_org/third_party/skia/experimental/PdfViewer/src/ |
SkPdfContext.cpp | 22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; 85 SkPdfResult PdfMainLooper::consumeToken(PdfToken& token) { 86 if (token.fType == kKeyword_TokenType && token.fKeywordLength < 256) 89 if (gPdfOps.find(token.fKeyword, token.fKeywordLength, &pdfOperatorRenderer) && 95 gRenderStats[result].find(token.fKeyword, token.fKeywordLength, &cnt); 96 gRenderStats[result].set(token.fKeyword, token.fKeywordLength, cnt + 1) 122 PdfToken token; local [all...] |
/external/skia/experimental/PdfViewer/src/ |
SkPdfContext.cpp | 22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE; 85 SkPdfResult PdfMainLooper::consumeToken(PdfToken& token) { 86 if (token.fType == kKeyword_TokenType && token.fKeywordLength < 256) 89 if (gPdfOps.find(token.fKeyword, token.fKeywordLength, &pdfOperatorRenderer) && 95 gRenderStats[result].find(token.fKeyword, token.fKeywordLength, &cnt); 96 gRenderStats[result].set(token.fKeyword, token.fKeywordLength, cnt + 1) 122 PdfToken token; local [all...] |
/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/ |
Token.js | 1 // NB: Because Token has static members of type CommonToken, the Token dummy 2 // constructor is defined in CommonToken. All methods and vars of Token are 3 // defined here. Token is an interface, not a subclass in the Java runtime. 6 * @class Abstract base class of all token types. 7 * @name Token 10 org.antlr.runtime.Token = function() {}; 11 org.antlr.lang.augmentObject(org.antlr.runtime.Token, /** @lends Token */ { 27 /** In an action, a lexer rule can set token to this SKIP_TOKEN and ANTL [all...] |
/external/chromium_org/tools/gn/ |
tokenizer_unittest.cc | 7 #include "tools/gn/token.h" 13 Token::Type type; 23 std::vector<Token> results = Tokenizer::Tokenize(&input_file, &err); 43 std::vector<Token> results = Tokenizer::Tokenize(&empty_string_input, &err); 55 { Token::IDENTIFIER, "foo" } 62 { Token::INTEGER, "123" }, 63 { Token::INTEGER, "-123" } 70 { Token::INTEGER, "123" }, 71 { Token::INTEGER, "-123" } 78 { Token::STRING, "\"foo\"" } [all...] |
token.cc | 5 #include "tools/gn/token.h" 9 Token::Token() : type_(INVALID), value_() { 12 Token::Token(const Location& location, 20 bool Token::IsIdentifierEqualTo(const char* v) const { 24 bool Token::IsStringEqualTo(const char* v) const {
|
/external/chromium_org/sync/internal_api/public/ |
sync_auth_provider.h | 14 // SyncAuthProvider is interface to access token related functions from sync 19 const std::string& token)> RequestTokenCallback; 23 // Request access token for sync. Callback will be called with error and 24 // access token. If error is anything other than NONE then token is invalid. 27 // Invalidate access token that was rejected by sync server. 28 virtual void InvalidateAccessToken(const std::string& token) = 0;
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/parsers/gas/ |
Makefile.inc | 5 nodist_libyasm_a_SOURCES += gas-token.c 9 gas-token.c: $(srcdir)/modules/parsers/gas/gas-token.re re2c$(EXEEXT) 10 $(top_builddir)/re2c$(EXEEXT) -b -o $@ $(srcdir)/modules/parsers/gas/gas-token.re 12 BUILT_SOURCES += gas-token.c 14 CLEANFILES += gas-token.c 17 EXTRA_DIST += modules/parsers/gas/gas-token.re
|
/external/chromium_org/base/strings/ |
string_tokenizer_unittest.cc | 20 EXPECT_EQ(string("this"), t.token()); 23 EXPECT_EQ(string("is"), t.token()); 26 EXPECT_EQ(string("a"), t.token()); 29 EXPECT_EQ(string("test"), t.token()); 40 EXPECT_EQ(string("this"), t.token()); 43 EXPECT_EQ(string("is"), t.token()); 46 EXPECT_EQ(string("a"), t.token()); 49 EXPECT_EQ(string("test"), t.token()); 62 EXPECT_EQ(string("this"), t.token()); 65 EXPECT_EQ(string(" "), t.token()); [all...] |
/external/chromium_org/sync/internal_api/public/util/ |
immutable_unittest.cc | 21 // Helper class that keeps track of the token passed in at 22 // construction and how many times that token is copied. 25 explicit TokenCore(const char* token) : token_(token), copy_count_(0) {} 48 const char kEmptyToken[] = "<empty token>"; 50 // Base class for various token classes, differing in swap behavior. 56 explicit TokenBase(const char* token) : core_(new TokenCore(token)) {} 97 typedef TokenBase<USE_DEFAULT_SWAP> Token; 154 void RunTokenTest(const char* token, bool expect_copies) [all...] |
/external/deqp/framework/randomshaders/ |
rsgVariable.cpp | 50 case STORAGE_CONST: str << Token::CONST; break; 51 case STORAGE_PARAMETER_IN: str << Token::IN; break; 52 case STORAGE_PARAMETER_OUT: str << Token::OUT; break; 53 case STORAGE_PARAMETER_INOUT: str << Token::INOUT; break; 57 str << Token::UNIFORM; 59 str << Token::MEDIUM_PRECISION; 68 str << Token::LAYOUT << Token::LEFT_PAREN << Token::LOCATION << Token::EQUAL << m_layoutLocation << Token::RIGHT_PAREN [all...] |