Home
last modified time | relevance | path

Searched refs:type_comments (Results 1 - 7 of 7) sorted by relevance

/third_party/python/Parser/
H A Dtokenizer.h77 int type_comments; /* Whether to look for type comments */ member
H A Dpegen.c758 tok->type_comments = (flags & PyPARSE_TYPE_COMMENTS) > 0; in _PyPegen_Parser_New()
H A Dtokenizer.c84 tok->type_comments = 0; in tok_new()
1576 if (tok->type_comments) { in tok_get()
/third_party/python/Lib/test/
H A Dtest_type_comments.py228 return ast.parse(source, type_comments=True,
365 ast.parse(source, type_comments=False)
H A Dtest_unparse.py479 self.check_ast_roundtrip(statement, type_comments=True)
494 self.check_ast_roundtrip(statement, type_comments=True)
H A Dtest_ast.py1058 """), type_comments=True)
/third_party/python/Lib/
H A Dast.py34 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