HomeSort by relevance Sort by last modified time
    Searched refs:token_types (Results 1 - 3 of 3) sorted by null

  /external/chromium-trace/catapult/third_party/closure_linter/closure_linter/common/
tokens.py 114 def IsAnyType(self, *token_types):
118 token_types: The types to check. Also accepts a single array.
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/
tokenutil.py 148 def Search(start_token, token_types, distance=None, reverse=False):
149 """Returns the first token of type in token_types within distance.
153 token_types: The allowable types of the token being searched for
161 The first token of any type in token_types within distance of this token, or
164 return CustomSearch(start_token, lambda token: token.IsAnyType(token_types),
168 def SearchExcept(start_token, token_types, distance=None, reverse=False):
169 """Returns the first token not of any type in token_types within distance.
173 token_types: The unallowable types of the token being searched for
181 The first token of any type in token_types within distance of this token, or
185 lambda token: not token.IsAnyType(token_types),
    [all...]
  /external/antlr/antlr-3.4/runtime/Ruby/test/functional/lexer/
basic.rb 30 token_types = lexer.map { |token| token.name }
31 token_types.should == %w(ZERO)

Completed in 941 milliseconds