/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/ |
H A D | matcher.py | 46 def __init__(self, regex, token_type, result_mode=None, line_start=False): 51 token_type: The type of token a successful match indicates. 58 self.type = token_type
|
H A D | tokens.py | 50 def __init__(self, string, token_type, line, line_number, values=None): 55 token_type: The type of token. 62 self.type = token_type 97 def IsType(self, token_type): 101 token_type: The type to test for. 106 return self.type == token_type
|
H A D | tokenizer.py | 78 def _CreateToken(self, string, token_type, line, line_number, values=None): 83 token_type: The type of token. 93 return tokens.Token(string, token_type, line, line_number, values)
|
/external/chromium/testing/gmock/scripts/generator/cpp/ |
H A D | tokenize.py | 74 def __init__(self, token_type, name, start, end): 75 self.token_type = token_type 147 token_type = UNKNOWN 151 token_type = NAME 159 token_type = CONSTANT 162 token_type = CONSTANT 173 token_type = SYNTAX 183 token_type = SYNTAX 186 token_type [all...] |
H A D | ast.py | 549 if parts[-1].token_type == tokenize.NAME: 579 if (type_name and type_name[-1].token_type == tokenize.NAME and 580 p.token_type == tokenize.NAME): 713 if token.token_type == _INTERNAL_TOKEN: 738 if token.token_type == tokenize.NAME: 749 if next.token_type == tokenize.SYNTAX and next.name == '(': 805 elif token.token_type == tokenize.SYNTAX: 811 if (token.token_type == tokenize.NAME and 815 elif token.token_type == tokenize.PREPROCESSOR: 854 while (last_token.token_type ! [all...] |
/external/openfst/src/include/fst/extensions/far/ |
H A D | print-strings.h | 42 typename StringPrinter<Arc>::TokenType token_type; local 44 token_type = StringPrinter<Arc>::SYMBOL; 46 token_type = StringPrinter<Arc>::BYTE; 48 token_type = StringPrinter<Arc>::UTF8; 65 StringPrinter<Arc> string_printer(token_type, syms); 116 if (token_type == StringPrinter<Arc>::SYMBOL)
|
H A D | compile-strings.h | 54 TokenType token_type, 59 token_type_(token_type), done_(false), 60 compiler_(token_type, syms, unknown_label, allow_negative_labels) { 152 typename StringCompiler<Arc>::TokenType token_type; local 154 token_type = StringCompiler<Arc>::SYMBOL; 156 token_type = StringCompiler<Arc>::BYTE; 158 token_type = StringCompiler<Arc>::UTF8; 218 istrm, inputs[i], entry_type, token_type, 230 << " in file " << inputs[i] << " failed with token_type = " 51 StringReader(istream &istrm, const string &source, EntryType entry_type, TokenType token_type, bool allow_negative_labels, const SymbolTable *syms = 0, Label unknown_label = kNoStateId) argument
|
H A D | farscript.h | 179 const FarTokenType token_type; member in struct:fst::script::FarPrintStringsArgs 190 const FarTokenType token_type, const string &begin_key, 194 ifilenames(ifilenames), entry_type(entry_type), token_type(token_type), 204 args->ifilenames, args->entry_type, args->token_type, 214 const FarTokenType token_type, 188 FarPrintStringsArgs( const vector<string> &ifilenames, const FarEntryType entry_type, const FarTokenType token_type, const string &begin_key, const string &end_key, const bool print_key, const string &symbols_fname, const int32 generate_filenames, const string &filename_prefix, const string &filename_suffix) argument
|
/external/chromium/testing/gtest/scripts/ |
H A D | pump.py | 140 def __init__(self, start=None, end=None, value=None, token_type=None): 150 self.token_type = token_type 154 self.start, self.value, self.token_type) 160 self.token_type) 171 for (regex, token_type) in token_table: 178 best_match_token_type = token_type 197 (start_column, length, token_type) = m 202 return MakeToken(lines, found_start, found_end, token_type) 237 def MakeToken(lines, start, end, token_type) [all...] |
/external/gtest/scripts/ |
H A D | pump.py | 140 def __init__(self, start=None, end=None, value=None, token_type=None): 150 self.token_type = token_type 154 self.start, self.value, self.token_type) 160 self.token_type) 171 for (regex, token_type) in token_table: 178 best_match_token_type = token_type 197 (start_column, length, token_type) = m 202 return MakeToken(lines, found_start, found_end, token_type) 237 def MakeToken(lines, start, end, token_type) [all...] |
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
H A D | indentation.py | 139 token_type = token.type 145 if token_type == Type.END_PAREN: 148 elif token_type == Type.END_PARAMETERS: 151 elif token_type == Type.END_BRACKET: 154 elif token_type == Type.END_BLOCK: 181 elif token_type == Type.KEYWORD and token.string in ('case', 'default'): 191 elif token_type == Type.SEMICOLON: 194 not_binary_operator = (token_type != Type.OPERATOR or 212 if token_type in Type.COMMENT_TYPES: 232 if token_type [all...] |
H A D | ecmametadatapass.py | 264 token_type = token.type 279 if token_type == TokenType.START_PAREN: 287 elif token_type == TokenType.END_PAREN: 315 elif (token_type == TokenType.KEYWORD and 323 elif token_type == TokenType.START_PARAMETERS: 326 elif token_type == TokenType.END_PARAMETERS: 329 elif token_type == TokenType.START_BRACKET: 336 elif token_type == TokenType.END_BRACKET: 339 elif token_type == TokenType.START_BLOCK: 354 elif token_type [all...] |
H A D | javascripttokenizer.py | 350 def _CreateToken(self, string, token_type, line, line_number, values=None): 355 token_type: The type of token. 362 return javascripttokens.JavaScriptToken(string, token_type, line,
|
/external/bison/src/ |
H A D | scan-gram.l | 136 static void handle_dollar (int token_type, char *cp, location loc); 137 static void handle_at (int token_type, char *cp, location loc); 174 int token_type IF_LINT (= 0); 224 "%destructor" token_type = PERCENT_DESTRUCTOR; BEGIN SC_PRE_CODE; 231 "%initial-action" token_type = PERCENT_INITIAL_ACTION; BEGIN SC_PRE_CODE; 234 "%lex-param" token_type = PERCENT_LEX_PARAM; BEGIN SC_PRE_CODE; 244 "%parse-param" token_type = PERCENT_PARSE_PARAM; BEGIN SC_PRE_CODE; 246 "%printer" token_type = PERCENT_PRINTER; BEGIN SC_PRE_CODE; 256 "%union" token_type = PERCENT_UNION; BEGIN SC_PRE_CODE; 298 token_type [all...] |
H A D | scan-gram.c | 997 static void handle_dollar (int token_type, char *cp, location loc); 998 static void handle_at (int token_type, char *cp, location loc); 1245 int token_type IF_LINT (= 0); variable 1444 token_type = PERCENT_DESTRUCTOR; BEGIN SC_PRE_CODE; variable 1479 token_type = PERCENT_INITIAL_ACTION; BEGIN SC_PRE_CODE; variable 1494 token_type = PERCENT_LEX_PARAM; BEGIN SC_PRE_CODE; variable 1544 token_type = PERCENT_PARSE_PARAM; BEGIN SC_PRE_CODE; variable 1554 token_type = PERCENT_PRINTER; BEGIN SC_PRE_CODE; variable 1604 token_type = PERCENT_UNION; BEGIN SC_PRE_CODE; variable 1690 token_type 3558 handle_dollar(int token_type, char *text, location loc) argument 3625 handle_at(int token_type, char *text, location loc) argument [all...] |
/external/openfst/src/extensions/far/ |
H A D | farprintstrings.cc | 36 DEFINE_string(token_type, "symbol", "Token type: one of : "
|
H A D | farscript.cc | 88 const FarTokenType token_type, 96 FarPrintStringsArgs args(ifilenames, entry_type, token_type, begin_key, 85 FarPrintStrings(const vector<string> &ifilenames, const string &arc_type, const FarEntryType entry_type, const FarTokenType token_type, const string &begin_key, const string &end_key, const bool print_key, const string &symbols_fname, const int32 generate_filenames, const string &filename_prefix, const string &filename_suffix) argument
|
H A D | farcompilestrings.cc | 40 DEFINE_string(token_type, "symbol", "Token type: one of : "
|
/external/v8/src/ |
H A D | token.cc | 57 const char Token::token_type[] = { member in class:v8::internal::Token
|
H A D | token.h | 203 return token_type[tok] == 'K'; 291 static const char token_type[NUM_TOKENS];
|
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/tree/ |
H A D | wizard.rb | 197 @token_type = tokenizer.next_token 201 case @token_type 205 @token_type == EOF and return node 214 @token_type != :open and return nil 215 @token_type = @tokenizer.next_token 219 case @token_type 229 @token_type == :close or return nil 230 @token_type = @tokenizer.next_token 236 if @token_type == :percent 237 ( @token_type [all...] |
H A D | debug.rb | 27 def create_from_token( token_type, from_token, text = nil ) 33 def create_from_type( token_type, text )
|
/external/openfst/src/include/fst/ |
H A D | string.h | 145 StringPrinter(TokenType token_type, argument 147 : token_type_(token_type), syms_(syms) {}
|
/external/protobuf/src/google/protobuf/compiler/ |
H A D | parser.h | 145 inline bool LookingAtType(io::Tokenizer::TokenType token_type);
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
H A D | BaseRecognizer.pm | 418 Readonly my $usage => 'void consume_until(IntStream input, (int token_type | BitSet set))'; 430 my ($self, $input, $token_type) = @_; 433 while ($ttype != ANTLR::Runtime::Token->EOF && $ttype != $token_type) {
|