Searched refs:type_comments (Results 1 - 7 of 7) sorted by relevance
/third_party/python/Parser/ |
H A D | tokenizer.h | 77 int type_comments; /* Whether to look for type comments */ member
|
H A D | pegen.c | 758 tok->type_comments = (flags & PyPARSE_TYPE_COMMENTS) > 0; in _PyPegen_Parser_New()
|
H A D | tokenizer.c | 84 tok->type_comments = 0; in tok_new() 1576 if (tok->type_comments) { in tok_get()
|
/third_party/python/Lib/test/ |
H A D | test_type_comments.py | 228 return ast.parse(source, type_comments=True, 365 ast.parse(source, type_comments=False)
|
H A D | test_unparse.py | 479 self.check_ast_roundtrip(statement, type_comments=True) 494 self.check_ast_roundtrip(statement, type_comments=True)
|
H A D | test_ast.py | 1058 """), type_comments=True)
|
/third_party/python/Lib/ |
H A D | ast.py | 34 type_comments=False, feature_version=None): 38 Pass type_comments=True to get back type comments where the syntax allows. 41 if type_comments: 1732 tree = parse(source, args.infile.name, args.mode, type_comments=args.no_type_comments)
|
Completed in 11 milliseconds