Files
wehub-resource-sync d0aab9212a
fuzz / fuzz (3.11) (push) Failing after 1s
fuzz / fuzz (3.12) (push) Failing after 1s
build and publish / sdist + pure wheel (push) Failing after 0s
diff-shades / analysis / base / ${{ matrix.mode }} (push) Has been skipped
docs / docs (ubuntu-latest) (push) Failing after 2s
fuzz / fuzz (3.10) (push) Failing after 1s
fuzz / fuzz (3.14) (push) Failing after 0s
lint and format / lint (push) Failing after 1s
diff-shades / configure (push) Failing after 1s
docker / build (linux/amd64) (push) Has been skipped
diff-shades / analysis / target / ${{ matrix.mode }} (push) Has been skipped
fuzz / fuzz (3.13) (push) Failing after 0s
build and publish / generate wheels matrix (push) Failing after 0s
test release tool / test-release-tool (ubuntu-latest, 3.13) (push) Failing after 1s
build and publish / mypyc wheels ${{ matrix.only }} (push) Has been skipped
test / test (ubuntu-latest, 3.10) (push) Failing after 0s
test / test (ubuntu-latest, 3.11) (push) Failing after 1s
test / test (ubuntu-latest, 3.13) (push) Failing after 0s
test / test (ubuntu-latest, pypy3.11-v7.3.22) (push) Failing after 1s
test / test (ubuntu-latest, 3.15) (push) Failing after 1s
test release tool / test-release-tool (ubuntu-latest, 3.15) (push) Failing after 0s
zizmor / zizmor (push) Failing after 0s
test release tool / test-release-tool (ubuntu-latest, 3.12) (push) Failing after 4s
test release tool / test-release-tool (ubuntu-latest, 3.14) (push) Failing after 3s
test / uvloop (ubuntu-latest) (push) Failing after 1s
test / test (ubuntu-latest, 3.14) (push) Failing after 1s
test / test (ubuntu-latest, 3.12.10) (push) Failing after 5s
docker / build (linux/arm64) (push) Has been cancelled
docker / push (push) Has been cancelled
docs / docs (windows-latest) (push) Has been cancelled
test release tool / test-release-tool (windows-latest, 3.14) (push) Has been cancelled
test release tool / test-release-tool (windows-latest, 3.15) (push) Has been cancelled
test release tool / test-release-tool (macOS-latest, 3.12) (push) Has been cancelled
test release tool / test-release-tool (macOS-latest, 3.13) (push) Has been cancelled
test release tool / test-release-tool (macOS-latest, 3.14) (push) Has been cancelled
test release tool / test-release-tool (macOS-latest, 3.15) (push) Has been cancelled
test release tool / test-release-tool (windows-latest, 3.12) (push) Has been cancelled
test release tool / test-release-tool (windows-latest, 3.13) (push) Has been cancelled
test / test (macOS-latest, 3.11) (push) Has been cancelled
test / test (macOS-latest, 3.12.10) (push) Has been cancelled
test / test (macOS-latest, 3.13) (push) Has been cancelled
test / test (macOS-latest, 3.14) (push) Has been cancelled
test / test (macOS-latest, 3.15) (push) Has been cancelled
test / test (macOS-latest, pypy3.11-v7.3.22) (push) Has been cancelled
test / test (windows-11-arm, 3.11) (push) Has been cancelled
test / test (windows-11-arm, 3.12.10) (push) Has been cancelled
test / test (windows-11-arm, 3.13) (push) Has been cancelled
test / test (macOS-latest, 3.10) (push) Has been cancelled
test / coveralls-finish (push) Has been cancelled
test / uvloop (macOS-latest) (push) Has been cancelled
test / uvloop (windows-11-arm) (push) Has been cancelled
test / uvloop (windows-latest) (push) Has been cancelled
test / test (windows-11-arm, 3.14) (push) Has been cancelled
test / test (windows-11-arm, 3.15) (push) Has been cancelled
test / test (windows-latest, 3.10) (push) Has been cancelled
test / test (windows-latest, 3.11) (push) Has been cancelled
test / test (windows-latest, 3.12.10) (push) Has been cancelled
test / test (windows-latest, 3.13) (push) Has been cancelled
test / test (windows-latest, 3.14) (push) Has been cancelled
test / test (windows-latest, 3.15) (push) Has been cancelled
test / test (windows-latest, pypy3.11-v7.3.22) (push) Has been cancelled
diff-shades / compare / ${{ matrix.mode }} (push) Has been cancelled
fuzz / create-issue (push) Has been cancelled
build and publish / publish-mypyc (push) Has been cancelled
build and publish / publish-hatch (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:07:39 +08:00

925 lines
18 KiB
Plaintext

file_input
decorated
decorator
AT
'@'
NAME
'dataclass'
NEWLINE
'\n'
/decorator
classdef
NAME
'class'
NAME
' '
'DebugVisitor'
LPAR
'('
power
NAME
'Visitor'
trailer
LSQB
'['
NAME
'T'
RSQB
']'
/trailer
/power
RPAR
')'
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
expr_stmt
NAME
' '
'tree_depth'
annassign
COLON
':'
NAME
' '
'int'
EQUAL
' '
'='
NUMBER
' '
'0'
/annassign
/expr_stmt
NEWLINE
'\n'
/simple_stmt
funcdef
NAME
'\n '
'def'
NAME
' '
'visit_default'
parameters
LPAR
'('
typedargslist
NAME
'self'
COMMA
','
tname
NAME
' '
'node'
COLON
':'
NAME
' '
'LN'
/tname
/typedargslist
RPAR
')'
/parameters
RARROW
' '
'->'
power
NAME
' '
'Iterator'
trailer
LSQB
'['
NAME
'T'
RSQB
']'
/trailer
/power
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
expr_stmt
NAME
' '
'indent'
EQUAL
' '
'='
term
STRING
' '
"' '"
STAR
' '
'*'
atom
LPAR
' '
'('
term
NUMBER
'2'
STAR
' '
'*'
power
NAME
' '
'self'
trailer
DOT
'.'
NAME
'tree_depth'
/trailer
/power
/term
RPAR
')'
/atom
/term
/expr_stmt
NEWLINE
'\n'
/simple_stmt
if_stmt
NAME
' '
'if'
power
NAME
' '
'isinstance'
trailer
LPAR
'('
arglist
NAME
'node'
COMMA
','
NAME
' '
'Node'
/arglist
RPAR
')'
/trailer
/power
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
expr_stmt
NAME
' '
'_type'
EQUAL
' '
'='
power
NAME
' '
'type_repr'
trailer
LPAR
'('
power
NAME
'node'
trailer
DOT
'.'
NAME
'type'
/trailer
/power
RPAR
')'
/trailer
/power
/expr_stmt
NEWLINE
'\n'
/simple_stmt
simple_stmt
power
NAME
' '
'out'
trailer
LPAR
'('
arglist
fstring
FSTRING_START
"f'"
fstring_replacement_field
LBRACE
'{'
NAME
'indent'
RBRACE
'}'
/fstring_replacement_field
fstring_replacement_field
LBRACE
'{'
NAME
'_type'
RBRACE
'}'
/fstring_replacement_field
FSTRING_END
"'"
/fstring
COMMA
','
argument
NAME
' '
'fg'
EQUAL
'='
STRING
"'yellow'"
/argument
/arglist
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
simple_stmt
expr_stmt
power
NAME
' '
'self'
trailer
DOT
'.'
NAME
'tree_depth'
/trailer
/power
PLUSEQUAL
' '
'+='
NUMBER
' '
'1'
/expr_stmt
NEWLINE
'\n'
/simple_stmt
for_stmt
NAME
' '
'for'
NAME
' '
'child'
NAME
' '
'in'
power
NAME
' '
'node'
trailer
DOT
'.'
NAME
'children'
/trailer
/power
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
yield_expr
NAME
' '
'yield'
yield_arg
NAME
' '
'from'
power
NAME
' '
'self'
trailer
DOT
'.'
NAME
'visit'
/trailer
trailer
LPAR
'('
NAME
'child'
RPAR
')'
/trailer
/power
/yield_arg
/yield_expr
NEWLINE
'\n'
/simple_stmt
DEDENT
''
/suite
/for_stmt
simple_stmt
expr_stmt
power
NAME
'\n '
'self'
trailer
DOT
'.'
NAME
'tree_depth'
/trailer
/power
MINEQUAL
' '
'-='
NUMBER
' '
'1'
/expr_stmt
NEWLINE
'\n'
/simple_stmt
simple_stmt
power
NAME
' '
'out'
trailer
LPAR
'('
arglist
fstring
FSTRING_START
"f'"
fstring_replacement_field
LBRACE
'{'
NAME
'indent'
RBRACE
'}'
/fstring_replacement_field
FSTRING_MIDDLE
'/'
fstring_replacement_field
LBRACE
'{'
NAME
'_type'
RBRACE
'}'
/fstring_replacement_field
FSTRING_END
"'"
/fstring
COMMA
','
argument
NAME
' '
'fg'
EQUAL
'='
STRING
"'yellow'"
/argument
COMMA
','
argument
NAME
' '
'bold'
EQUAL
'='
NAME
'False'
/argument
/arglist
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
DEDENT
''
/suite
NAME
' '
'else'
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
expr_stmt
NAME
' '
'_type'
EQUAL
' '
'='
power
NAME
' '
'token'
trailer
DOT
'.'
NAME
'tok_name'
/trailer
trailer
DOT
'.'
NAME
'get'
/trailer
trailer
LPAR
'('
arglist
power
NAME
'node'
trailer
DOT
'.'
NAME
'type'
/trailer
/power
COMMA
','
power
NAME
' '
'str'
trailer
LPAR
'('
power
NAME
'node'
trailer
DOT
'.'
NAME
'type'
/trailer
/power
RPAR
')'
/trailer
/power
/arglist
RPAR
')'
/trailer
/power
/expr_stmt
NEWLINE
'\n'
/simple_stmt
simple_stmt
power
NAME
' '
'out'
trailer
LPAR
'('
arglist
fstring
FSTRING_START
"f'"
fstring_replacement_field
LBRACE
'{'
NAME
'indent'
RBRACE
'}'
/fstring_replacement_field
fstring_replacement_field
LBRACE
'{'
NAME
'_type'
RBRACE
'}'
/fstring_replacement_field
FSTRING_END
"'"
/fstring
COMMA
','
argument
NAME
' '
'fg'
EQUAL
'='
STRING
"'blue'"
/argument
COMMA
','
argument
NAME
' '
'nl'
EQUAL
'='
NAME
'False'
/argument
/arglist
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
if_stmt
NAME
' '
'if'
power
NAME
' '
'node'
trailer
DOT
'.'
NAME
'prefix'
/trailer
/power
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
power
NAME
" # We don't have to handle prefixes for `Node` objects since\n # that delegates to the first child anyway.\n "
'out'
trailer
LPAR
'('
arglist
fstring
FSTRING_START
"f'"
FSTRING_MIDDLE
' '
fstring_replacement_field
LBRACE
'{'
power
NAME
'node'
trailer
DOT
'.'
NAME
'prefix'
/trailer
/power
BANG
'!'
NAME
'r'
RBRACE
'}'
/fstring_replacement_field
FSTRING_END
"'"
/fstring
COMMA
','
argument
NAME
' '
'fg'
EQUAL
'='
STRING
"'green'"
/argument
COMMA
','
argument
NAME
' '
'bold'
EQUAL
'='
NAME
'False'
/argument
COMMA
','
argument
NAME
' '
'nl'
EQUAL
'='
NAME
'False'
/argument
/arglist
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
DEDENT
''
/suite
/if_stmt
simple_stmt
power
NAME
' '
'out'
trailer
LPAR
'('
arglist
fstring
FSTRING_START
"f'"
FSTRING_MIDDLE
' '
fstring_replacement_field
LBRACE
'{'
power
NAME
'node'
trailer
DOT
'.'
NAME
'value'
/trailer
/power
BANG
'!'
NAME
'r'
RBRACE
'}'
/fstring_replacement_field
FSTRING_END
"'"
/fstring
COMMA
','
argument
NAME
' '
'fg'
EQUAL
'='
STRING
"'blue'"
/argument
COMMA
','
argument
NAME
' '
'bold'
EQUAL
'='
NAME
'False'
/argument
/arglist
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
DEDENT
''
/suite
/if_stmt
DEDENT
''
/suite
/funcdef
decorated
decorator
AT
'\n '
'@'
NAME
'classmethod'
NEWLINE
'\n'
/decorator
funcdef
NAME
' '
'def'
NAME
' '
'show'
parameters
LPAR
'('
typedargslist
NAME
'cls'
COMMA
','
tname
NAME
' '
'code'
COLON
':'
NAME
' '
'str'
/tname
/typedargslist
RPAR
')'
/parameters
RARROW
' '
'->'
NAME
' '
'None'
COLON
':'
suite
NEWLINE
'\n'
INDENT
''
simple_stmt
STRING
' '
'"""Pretty-prints a given string of `code`.\n\n Convenience method for debugging.\n """'
NEWLINE
'\n'
/simple_stmt
simple_stmt
expr_stmt
NAME
' '
'v'
annassign
COLON
':'
power
NAME
' '
'DebugVisitor'
trailer
LSQB
'['
NAME
'None'
RSQB
']'
/trailer
/power
EQUAL
' '
'='
power
NAME
' '
'DebugVisitor'
trailer
LPAR
'('
RPAR
')'
/trailer
/power
/annassign
/expr_stmt
NEWLINE
'\n'
/simple_stmt
simple_stmt
power
NAME
' '
'list'
trailer
LPAR
'('
power
NAME
'v'
trailer
DOT
'.'
NAME
'visit'
/trailer
trailer
LPAR
'('
power
NAME
'lib2to3_parse'
trailer
LPAR
'('
NAME
'code'
RPAR
')'
/trailer
/power
RPAR
')'
/trailer
/power
RPAR
')'
/trailer
/power
NEWLINE
'\n'
/simple_stmt
DEDENT
''
/suite
/funcdef
/decorated
DEDENT
''
/suite
/classdef
/decorated
ENDMARKER
''
/file_input