/third_party/googletest/googlemock/scripts/generator/cpp/ |
D | ast.py | 44 from cpp import tokenize 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): 581 type_name.append(tokenize.Token(tokenize.SYNTAX, ' ', 0, 0)) 749 if token.token_type == tokenize.NAME: 768 if next.token_type == tokenize.SYNTAX and next.name == '(': 773 syntax = tokenize.SYNTAX 783 new_temp = self._GetTokensUpTo(tokenize.SYNTAX, ';') 786 last_token = tokenize.Token(tokenize.SYNTAX, ';', 0, 0) [all …]
|
/third_party/python/Doc/library/ |
D | tokenize.rst | 1 :mod:`tokenize` --- Tokenizer for Python source 4 .. module:: tokenize 10 **Source code:** :source:`Lib/tokenize.py` 14 The :mod:`tokenize` module provides a lexical scanner for Python source code, 23 :term:`named tuple` returned from :func:`tokenize.tokenize`. 30 .. function:: tokenize(readline) 32 The :func:`.tokenize` generator requires one argument, *readline*, which 57 :func:`.tokenize` determines the source encoding of the file by looking for a 64 Like :func:`.tokenize`, the *readline* argument is a callable returning 69 :func:`.tokenize`. It does not yield an :data:`~token.ENCODING` token. [all …]
|
/third_party/python/Tools/peg_generator/pegen/ |
D | tokenizer.py | 2 import tokenize 10 def shorttok(tok: tokenize.TokenInfo) -> str: 20 _tokens: List[tokenize.TokenInfo] 22 def __init__(self, tokengen: Iterator[tokenize.TokenInfo], *, verbose: bool = False): 30 def getnext(self) -> tokenize.TokenInfo: 35 if tok.type in (tokenize.NL, tokenize.COMMENT): 47 def peek(self) -> tokenize.TokenInfo: 51 if tok.type in (tokenize.NL, tokenize.COMMENT): 58 def diagnose(self) -> tokenize.TokenInfo:
|
D | parser.py | 5 import tokenize 180 def name(self) -> Optional[tokenize.TokenInfo]: 187 def number(self) -> Optional[tokenize.TokenInfo]: 194 def string(self) -> Optional[tokenize.TokenInfo]: 201 def op(self) -> Optional[tokenize.TokenInfo]: 208 def expect(self, type: str) -> Optional[tokenize.TokenInfo]: 269 tokengen = tokenize.generate_tokens(file.readline)
|
/third_party/python/Tools/i18n/ |
D | pygettext.py | 167 import tokenize 335 if ttype == tokenize.STRING and is_literal_string(tstring): 338 elif ttype not in (tokenize.COMMENT, tokenize.NL): 342 if ttype == tokenize.NAME and tstring in ('class', 'def'): 345 if ttype == tokenize.NAME and tstring in opts.keywords: 348 if ttype == tokenize.STRING: 402 if ttype == tokenize.OP: 413 if ttype == tokenize.STRING and is_literal_string(tstring): 416 elif ttype not in (tokenize.NEWLINE, tokenize.INDENT, 417 tokenize.COMMENT): [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | arrayAssignmentTest5.types | 31 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 32 >tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens 46 var lineTokens:ILineTokens= this.tokenize(line, state, true); 48 >this.tokenize(line, state, true) : ILineTokens 49 >this.tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens 51 >tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens 79 public tokenize(line:string, state:IState, includeStates:boolean):ILineTokens { 80 >tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens
|
D | arrayAssignmentTest5.symbols | 47 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 48 >tokenize : Symbol(IMode.tokenize, Decl(arrayAssignmentTest5.ts, 16, 66)) 67 var lineTokens:ILineTokens= this.tokenize(line, state, true); 70 >this.tokenize : Symbol(Bug.tokenize, Decl(arrayAssignmentTest5.ts, 26, 9)) 72 >tokenize : Symbol(Bug.tokenize, Decl(arrayAssignmentTest5.ts, 26, 9)) 97 public tokenize(line:string, state:IState, includeStates:boolean):ILineTokens { 98 >tokenize : Symbol(Bug.tokenize, Decl(arrayAssignmentTest5.ts, 26, 9))
|
D | arrayAssignmentTest5.js | 19 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 23 var lineTokens:ILineTokens= this.tokenize(line, state, true); 29 public tokenize(line:string, state:IState, includeStates:boolean):ILineTokens { 43 var lineTokens = this.tokenize(line, state, true); 49 Bug.prototype.tokenize = function (line, state, includeStates) { method in Bug
|
D | arrayAssignmentTest6.symbols | 28 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 29 >tokenize : Symbol(IMode.tokenize, Decl(arrayAssignmentTest6.ts, 10, 21)) 40 public tokenize(line:string, tokens:IToken[], includeStates:boolean):ILineTokens { 41 >tokenize : Symbol(Bug.tokenize, Decl(arrayAssignmentTest6.ts, 13, 39))
|
D | arrayAssignmentTest6.types | 19 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 20 >tokenize : (line: string, state: IState, includeStates: boolean) => ILineTokens 28 public tokenize(line:string, tokens:IToken[], includeStates:boolean):ILineTokens { 29 >tokenize : (line: string, tokens: IToken[], includeStates: boolean) => ILineTokens
|
D | arrayAssignmentTest6.js | 13 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 16 public tokenize(line:string, tokens:IToken[], includeStates:boolean):ILineTokens { 29 Bug.prototype.tokenize = function (line, tokens, includeStates) { method in Bug
|
D | arrayAssignmentTest5.errors.txt | 23 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; 27 var lineTokens:ILineTokens= this.tokenize(line, state, true); 37 public tokenize(line:string, state:IState, includeStates:boolean):ILineTokens {
|
/third_party/vk-gl-cts/framework/randomshaders/ |
D | rsgStatement.cpp | 203 void BlockStatement::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::BlockStatement 208 (*i)->tokenize(state, str); in tokenize() 219 void ExpressionStatement::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::ExpressionStatement 222 m_expression->tokenize(state, str); in tokenize() 332 void DeclarationStatement::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::DeclarationStatement 339 m_expression->tokenize(state, str); in tokenize() 455 void ConditionalStatement::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::ConditionalStatement 461 m_condition->tokenize(state, str); in tokenize() 468 m_trueStatement->tokenize(state, str); in tokenize() 472 m_trueStatement->tokenize(state, str); in tokenize() [all …]
|
D | rsgExpression.hpp | 57 virtual void tokenize (GeneratorState& state, TokenStream& str) const = DE_NULL; 74 …void tokenize (GeneratorState& state, TokenStream& str) const { DE_UNREF(state); str << Tok… in tokenize() function in rsg::VariableAccess 114 void tokenize (GeneratorState& state, TokenStream& str) const; 132 void tokenize (GeneratorState& state, TokenStream& str) const; 151 void tokenize (GeneratorState& state, TokenStream& str) const; 169 void tokenize (GeneratorState& state, TokenStream& str) const; 191 void tokenize (GeneratorState& state, TokenStream& str) const; 216 void tokenize (GeneratorState& state, TokenStream& str) const; 236 void tokenize (GeneratorState& state, TokenStream& str) const; 258 void tokenize (GeneratorState& state, TokenStream& str) const;
|
D | rsgStatement.hpp | 44 virtual void tokenize (GeneratorState& state, TokenStream& str) const = DE_NULL; 62 void tokenize (GeneratorState& state, TokenStream& str) const; 78 void tokenize (GeneratorState& state, TokenStream& str) const; 98 void tokenize (GeneratorState& state, TokenStream& str) const; 119 void tokenize (GeneratorState& state, TokenStream& str) const; 145 void tokenize (GeneratorState& state, TokenStream& str) const;
|
D | rsgShader.cpp | 93 void Shader::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::Shader 101 m_globalStatements[ndx]->tokenize(state, str); in tokenize() 107 m_functions[ndx]->tokenize(state, str); in tokenize() 112 m_mainFunction.tokenize(state, str); in tokenize() 125 void Function::tokenize (GeneratorState& state, TokenStream& str) const in tokenize() function in rsg::Function 147 m_functionBlock.tokenize(state, str); in tokenize()
|
/third_party/python/Lib/ |
D | tabnanny.py | 25 import tokenize 26 if not hasattr(tokenize, 'NL'): 98 f = tokenize.open(file) 107 process_tokens(tokenize.generate_tokens(f.readline)) 109 except tokenize.TokenError as msg: 278 INDENT = tokenize.INDENT 279 DEDENT = tokenize.DEDENT 280 NEWLINE = tokenize.NEWLINE 281 JUNK = tokenize.COMMENT, tokenize.NL
|
/third_party/python/Tools/scripts/ |
D | highlight.py | 11 import tokenize 35 tok_type = tokenize.COMMENT 37 for tok in tokenize.generate_tokens(readline): 41 if tok_type == tokenize.COMMENT: 43 elif tok_type == tokenize.OP and tok_str[:1] not in '{}[](),.:;@': 45 elif tok_type == tokenize.STRING: 47 if prev_tok_type == tokenize.INDENT or scol==0: 49 elif tok_type == tokenize.NAME:
|
D | cleanfuture.py | 42 import tokenize 156 STRING = tokenize.STRING 157 NL = tokenize.NL 158 NEWLINE = tokenize.NEWLINE 159 COMMENT = tokenize.COMMENT 160 NAME = tokenize.NAME 161 OP = tokenize.OP 164 get = tokenize.generate_tokens(self.getline).__next__
|
D | reindent.py | 46 import tokenize 122 encoding, _ = tokenize.detect_encoding(f.readline) 202 tokens = tokenize.generate_tokens(self.getline) 286 INDENT=tokenize.INDENT, 287 DEDENT=tokenize.DEDENT, 288 NEWLINE=tokenize.NEWLINE, 289 COMMENT=tokenize.COMMENT, 290 NL=tokenize.NL):
|
D | generate_opcode_h.py | 4 import tokenize 48 if hasattr(tokenize, 'open'): 49 fp = tokenize.open(opcode_py) # Python 3.2+
|
/third_party/typescript/tests/cases/compiler/ |
D | arrayAssignmentTest5.ts | 18 tokenize(line:string, state:IState, includeStates:boolean):ILineTokens; method 22 var lineTokens:ILineTokens= this.tokenize(line, state, true); 28 public tokenize(line:string, state:IState, includeStates:boolean):ILineTokens { method in Bug
|
/third_party/python/Lib/lib2to3/pgen2/ |
D | driver.py | 26 from . import grammar, parse, token, tokenize, pgen 59 if type in (tokenize.COMMENT, tokenize.NL): 88 tokens = tokenize.generate_tokens(stream.readline) 102 tokens = tokenize.generate_tokens(io.StringIO(text).readline)
|
/third_party/node/deps/acorn/acorn/dist/ |
D | bin.js | 7 var infile, forceFile, silent = false, compact = false, tokenize = false; variable 27 else if (arg === "--tokenize") { tokenize = true; } 41 if (!tokenize) {
|
/third_party/python/Lib/test/ |
D | test_tokenize.py | 3 from tokenize import (tokenize, _tokenize, untokenize, NUMBER, NAME, OP, 47 result = stringify_tokens_from_source(tokenize(f.readline), s) 57 tokens = list(tokenize(f.readline)) 95 for tok in tokenize(readline): 222 for toktype, token, start, end, line in tokenize(f.readline): 1520 tokenize.untokenize(), and the latter tokenized again to 2-tuples.
|