Files
Raphael Amiard 5e09063757 Q322-037: Implement proper snapping
Users can annotate node that they want to have snapping sloc behavior.
Additionally, incomplete nodes snap at the end.

Change-Id: Ib3b8d3337d1356059b01694b547265386afd814f
2018-02-15 12:16:32 +01:00

41 lines
1.2 KiB
Plaintext

FileNode[1:1-7:1]
|statements:
| PythonNodeList[1:1-7:1]
| | FuncDef[2:1-7:1]
| | |name:
| | | Id[2:5-2:9]: test
| | |parameters:
| | | Params[2:10-2:14]
| | | |single_params:
| | | | SingleParamList[2:10-2:14]
| | | | | SingleParam[2:10-2:11]
| | | | | |is_varargs:
| | | | | | VarArgsFlagAbsent[2:10-2:10]
| | | | | |is_kwargs:
| | | | | | KwArgsFlagAbsent[2:10-2:10]
| | | | | |name:
| | | | | | Id[2:10-2:11]: a
| | | | | |default_value: <null>
| | | | | SingleParam[2:13-2:14]
| | | | | |is_varargs:
| | | | | | VarArgsFlagAbsent[2:12-2:12]
| | | | | |is_kwargs:
| | | | | | KwArgsFlagAbsent[2:12-2:12]
| | | | | |name:
| | | | | | Id[2:13-2:14]: b
| | | | | |default_value: <null>
| | |body:
| | | PythonNodeList[3:5-7:1]
| | | | ExprList[3:5-5:8]
| | | | | StringLit[3:5-5:8]: """\x0a Return the sum of a + b\x0a """
| | | | ReturnStmt[6:5-6:17]
| | | | |exprs:
| | | | | ExprList[6:12-6:17]
| | | | | | ArithExpr[6:12-6:17]
| | | | | | |left:
| | | | | | | Id[6:12-6:13]: a
| | | | | | |op:
| | | | | | | Op[6:14-6:15]: +
| | | | | | |right:
| | | | | | | Id[6:16-6:17]: b