Searched refs:token_types (Results 1 – 3 of 3) sorted by relevance
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/common/ |
D | tokens.py | 114 def IsAnyType(self, *token_types): argument 123 if not isinstance(token_types[0], basestring): 124 return self.type in token_types[0] 126 return self.type in token_types
|
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/ |
D | tokenutil.py | 148 def Search(start_token, token_types, distance=None, reverse=False): argument 164 return CustomSearch(start_token, lambda token: token.IsAnyType(token_types), 168 def SearchExcept(start_token, token_types, distance=None, reverse=False): argument 185 lambda token: not token.IsAnyType(token_types), 189 def SearchUntil(start_token, token_types, end_types, distance=None, argument 207 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)
|