-
-
Save zurk/4764b6a9d04c8ba6bbe8b6385c1d5f60 to your computer and use it in GitHub Desktop.
UAST for function call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uast { | |
internal_type: "Module" | |
children { | |
internal_type: "FunctionDef" | |
properties { | |
key: "internalRole" | |
value: "body" | |
} | |
properties { | |
key: "returns" | |
value: "<nil>" | |
} | |
children { | |
internal_type: "arguments" | |
properties { | |
key: "internalRole" | |
value: "args" | |
} | |
properties { | |
key: "kwarg" | |
value: "<nil>" | |
} | |
properties { | |
key: "vararg" | |
value: "<nil>" | |
} | |
start_position { | |
line: 1 | |
col: 1 | |
} | |
roles: FUNCTION_DECLARATION_ARGUMENT | |
roles: INCOMPLETE | |
} | |
children { | |
internal_type: "FunctionDef.body" | |
properties { | |
key: "promotedPropertyList" | |
value: "true" | |
} | |
children { | |
internal_type: "Pass" | |
token: "pass" | |
start_position { | |
offset: 20 | |
line: 2 | |
col: 5 | |
} | |
end_position { | |
offset: 23 | |
line: 2 | |
col: 8 | |
} | |
roles: NOOP | |
roles: STATEMENT | |
} | |
roles: FUNCTION_DECLARATION_BODY | |
} | |
token: "function" | |
start_position { | |
offset: 4 | |
line: 1 | |
col: 5 | |
} | |
end_position { | |
offset: 23 | |
line: 2 | |
col: 8 | |
} | |
roles: FUNCTION_DECLARATION | |
roles: FUNCTION_DECLARATION_NAME | |
roles: SIMPLE_IDENTIFIER | |
} | |
children { | |
internal_type: "Expr" | |
properties { | |
key: "internalRole" | |
value: "body" | |
} | |
children { | |
internal_type: "Call" | |
properties { | |
key: "internalRole" | |
value: "value" | |
} | |
children { | |
internal_type: "Name" | |
properties { | |
key: "ctx" | |
value: "Load" | |
} | |
properties { | |
key: "internalRole" | |
value: "func" | |
} | |
children { | |
internal_type: "PreviousNoops" | |
properties { | |
key: "internalRole" | |
value: "noops_previous" | |
} | |
children { | |
internal_type: "NoopLine" | |
properties { | |
key: "internalRole" | |
value: "lines" | |
} | |
token: "\n" | |
start_position { | |
offset: 25 | |
line: 3 | |
col: 1 | |
} | |
roles: COMMENT | |
} | |
start_position { | |
offset: 25 | |
line: 3 | |
col: 1 | |
} | |
end_position { | |
offset: 25 | |
line: 3 | |
col: 1 | |
} | |
roles: WHITESPACE | |
} | |
token: "function" | |
start_position { | |
offset: 26 | |
line: 4 | |
col: 1 | |
} | |
end_position { | |
offset: 33 | |
line: 4 | |
col: 8 | |
} | |
roles: CALL | |
roles: SIMPLE_IDENTIFIER | |
roles: EXPRESSION | |
} | |
start_position { | |
offset: 27 | |
line: 4 | |
col: 2 | |
} | |
end_position { | |
offset: 33 | |
line: 4 | |
col: 8 | |
} | |
roles: CALL | |
roles: EXPRESSION | |
} | |
start_position { | |
offset: 26 | |
line: 4 | |
col: 1 | |
} | |
end_position { | |
offset: 33 | |
line: 4 | |
col: 8 | |
} | |
roles: EXPRESSION | |
} | |
start_position { | |
line: 1 | |
col: 1 | |
} | |
end_position { | |
offset: 33 | |
line: 4 | |
col: 8 | |
} | |
roles: FILE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment