HomeSort by relevance Sort by last modified time
    Searched full:tokenutil (Results 1 - 20 of 20) sorted by null

  /external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
error_fixer.py 28 from closure_linter import tokenutil namespace
138 tokenutil.InsertTokenAfter(semicolon_token, token)
146 tokenutil.DeleteToken(token)
161 tokenutil.InsertSpaceTokenAfter(token.previous)
163 tokenutil.InsertSpaceTokenAfter(token)
179 tokenutil.InsertBlankLineAfter(token.previous)
181 tokenutil.InsertBlankLineAfter(token)
185 tokenutil.DeleteToken(token)
190 # TODO(user): Add an insertBefore method to tokenutil.
203 tokenutil.DeleteToken(token.previous
    [all...]
requireprovidesorter.py 32 from closure_linter import tokenutil namespace
132 tokenutil.DeleteToken(i)
144 tokenutil.DeleteToken(i)
150 tokenutil.InsertTokenAfter(i, insert_after)
196 name = tokenutil.Search(token, Type.STRING_TEXT).string
231 object_name = tokenutil.Search(token, Type.STRING_TEXT).string
236 previous_first_token = tokenutil.GetFirstTokenInPreviousLine(first_token)
239 previous_first_token = tokenutil.GetFirstTokenInPreviousLine(
243 last_token = tokenutil.GetLastTokenInSameLine(token)
javascriptstatetracker.py 23 from closure_linter import tokenutil namespace
100 last_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES, None,
statetracker.py 26 from closure_linter import tokenutil namespace
161 brace = tokenutil.SearchUntil(flag_token, [Type.DOC_START_BRACE],
186 tokenutil.Compare(self.name_token, self.type_start_token) > 0):
199 if tokenutil.Compare(self.type_end_token, self.name_token) > 0:
208 interesting_token = tokenutil.Search(search_start_token,
269 brace = tokenutil.SearchUntil(token, [Type.DOC_START_BRACE],
792 f = tokenutil.SearchUntil(t, [Type.DOC_FLAG], [Type.START_DOC_COMMENT],
795 return (tokenutil.Compare(t, f.attached_object.type_start_token) > 0 and
796 tokenutil.Compare(t, f.attached_object.type_end_token) < 0)
885 last_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES, None
    [all...]
javascriptlintrules.py 35 from closure_linter import tokenutil namespace
160 elif flag.name_token and flag.type_end_token and tokenutil.Compare(
200 # NOTE: The tokenutil methods are not used here because of their
328 namespace = tokenutil.Search(token, Type.STRING_TEXT).string
343 tokenutil.GetLastTokenInSameLine(token).next,
353 tokenutil.GetLastTokenInSameLine(token).next,
359 namespace = tokenutil.Search(token, Type.STRING_TEXT).string
369 tokenutil.GetFirstTokenInSameLine(token),
385 tokenutil.GetLastTokenInSameLine(token).next,
closurizednamespacesinfo.py 28 from closure_linter import tokenutil namespace
138 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
167 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
309 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
324 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
361 doc_start = tokenutil.Search(token, TokenType.DOC_START_BRACE)
362 interface = tokenutil.Search(doc_start, TokenType.COMMENT)
ecmametadatapass.py 22 from closure_linter import tokenutil namespace
295 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
317 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
442 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
indentation.py 24 from closure_linter import tokenutil namespace
213 next_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES)
215 next_code = tokenutil.SearchExcept(next_code, Type.NON_CODE_TYPES)
402 token = tokenutil.GetFirstTokenInSameLine(token)
closurizednamespacesinfo_test.py 26 from closure_linter import tokenutil namespace
134 token = tokenutil.Search(token.next, TokenType.IDENTIFIER)
ecmalintrules.py 34 from closure_linter import tokenutil namespace
342 for_token = tokenutil.CustomSearch(last_code,
634 equal_operator = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES)
635 next_code = tokenutil.SearchExcept(equal_operator, Type.NON_CODE_TYPES)
    [all...]
  /external/chromium_org/third_party/closure_linter/closure_linter/
error_fixer.py 28 from closure_linter import tokenutil namespace
138 tokenutil.InsertTokenAfter(semicolon_token, token)
146 tokenutil.DeleteToken(token)
161 tokenutil.InsertSpaceTokenAfter(token.previous)
163 tokenutil.InsertSpaceTokenAfter(token)
179 tokenutil.InsertBlankLineAfter(token.previous)
181 tokenutil.InsertBlankLineAfter(token)
185 tokenutil.DeleteToken(token)
190 # TODO(user): Add an insertBefore method to tokenutil.
203 tokenutil.DeleteToken(token.previous
    [all...]
requireprovidesorter.py 32 from closure_linter import tokenutil namespace
132 tokenutil.DeleteToken(i)
144 tokenutil.DeleteToken(i)
150 tokenutil.InsertTokenAfter(i, insert_after)
196 name = tokenutil.Search(token, Type.STRING_TEXT).string
231 object_name = tokenutil.Search(token, Type.STRING_TEXT).string
236 previous_first_token = tokenutil.GetFirstTokenInPreviousLine(first_token)
239 previous_first_token = tokenutil.GetFirstTokenInPreviousLine(
243 last_token = tokenutil.GetLastTokenInSameLine(token)
javascriptstatetracker.py 23 from closure_linter import tokenutil namespace
100 last_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES, None,
statetracker.py 26 from closure_linter import tokenutil namespace
161 brace = tokenutil.SearchUntil(flag_token, [Type.DOC_START_BRACE],
186 tokenutil.Compare(self.name_token, self.type_start_token) > 0):
199 if tokenutil.Compare(self.type_end_token, self.name_token) > 0:
208 interesting_token = tokenutil.Search(search_start_token,
269 brace = tokenutil.SearchUntil(token, [Type.DOC_START_BRACE],
792 f = tokenutil.SearchUntil(t, [Type.DOC_FLAG], [Type.START_DOC_COMMENT],
795 return (tokenutil.Compare(t, f.attached_object.type_start_token) > 0 and
796 tokenutil.Compare(t, f.attached_object.type_end_token) < 0)
885 last_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES, None
    [all...]
javascriptlintrules.py 35 from closure_linter import tokenutil namespace
160 elif flag.name_token and flag.type_end_token and tokenutil.Compare(
200 # NOTE: The tokenutil methods are not used here because of their
328 namespace = tokenutil.Search(token, Type.STRING_TEXT).string
343 tokenutil.GetLastTokenInSameLine(token).next,
353 tokenutil.GetLastTokenInSameLine(token).next,
359 namespace = tokenutil.Search(token, Type.STRING_TEXT).string
369 tokenutil.GetFirstTokenInSameLine(token),
385 tokenutil.GetLastTokenInSameLine(token).next,
closurizednamespacesinfo.py 28 from closure_linter import tokenutil namespace
138 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
167 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
309 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
324 namespace = tokenutil.Search(token, TokenType.STRING_TEXT).string
361 doc_start = tokenutil.Search(token, TokenType.DOC_START_BRACE)
362 interface = tokenutil.Search(doc_start, TokenType.COMMENT)
ecmametadatapass.py 22 from closure_linter import tokenutil namespace
295 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
317 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
442 next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
indentation.py 24 from closure_linter import tokenutil namespace
213 next_code = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES)
215 next_code = tokenutil.SearchExcept(next_code, Type.NON_CODE_TYPES)
402 token = tokenutil.GetFirstTokenInSameLine(token)
closurizednamespacesinfo_test.py 26 from closure_linter import tokenutil namespace
134 token = tokenutil.Search(token.next, TokenType.IDENTIFIER)
ecmalintrules.py 34 from closure_linter import tokenutil namespace
342 for_token = tokenutil.CustomSearch(last_code,
634 equal_operator = tokenutil.SearchExcept(token, Type.NON_CODE_TYPES)
635 next_code = tokenutil.SearchExcept(equal_operator, Type.NON_CODE_TYPES)
    [all...]

Completed in 982 milliseconds