Searched refs:token_types (Results 1 – 3 of 3) sorted by relevance
/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/common/ |
D | tokens.py | 108 def IsAnyType(self, *token_types): argument 117 if not isinstance(token_types[0], basestring): 118 return self.type in token_types[0] 120 return self.type in token_types
|
/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/ |
D | tokenutil.py | 147 def Search(start_token, token_types, distance=None, reverse=False): argument 163 return CustomSearch(start_token, lambda token: token.IsAnyType(token_types), 167 def SearchExcept(start_token, token_types, distance=None, reverse=False): argument 184 lambda token: not token.IsAnyType(token_types), 188 def SearchUntil(start_token, token_types, end_types, distance=None, argument 206 return CustomSearch(start_token, lambda token: token.IsAnyType(token_types),
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/ |
D | basic.rb | 30 token_types = lexer.map { |token| token.name } 31 token_types.should == %w(ZERO)
|