Support paths to names rather than just raw idents (#5778)
* Support paths to names rather than just raw idents Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -174,11 +174,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 475,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"name": {
|
||||
"commentStart": 475,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 475,
|
||||
"end": 0,
|
||||
@ -198,12 +206,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"abs_path": false,
|
||||
"commentStart": 518,
|
||||
"end": 0,
|
||||
"name": "center",
|
||||
"name": {
|
||||
"commentStart": 518,
|
||||
"end": 0,
|
||||
"name": "center",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -216,21 +232,37 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"abs_path": false,
|
||||
"commentStart": 535,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"name": {
|
||||
"commentStart": 535,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 502,
|
||||
"end": 0,
|
||||
"name": "circle",
|
||||
"name": {
|
||||
"commentStart": 502,
|
||||
"end": 0,
|
||||
"name": "circle",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 502,
|
||||
"end": 0,
|
||||
@ -254,12 +286,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 567,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"abs_path": false,
|
||||
"commentStart": 567,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"name": {
|
||||
"commentStart": 567,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
@ -281,11 +321,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 550,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"name": {
|
||||
"commentStart": 550,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 550,
|
||||
"end": 0,
|
||||
@ -400,20 +448,36 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 654,
|
||||
"end": 0,
|
||||
"name": "oxygenRadius",
|
||||
"name": {
|
||||
"commentStart": 654,
|
||||
"end": 0,
|
||||
"name": "oxygenRadius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 635,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"name": {
|
||||
"commentStart": 635,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 635,
|
||||
"end": 0,
|
||||
@ -451,12 +515,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 736,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"abs_path": false,
|
||||
"commentStart": 736,
|
||||
"end": 0,
|
||||
"name": "oxygenHydrogenDistance",
|
||||
"name": {
|
||||
"commentStart": 736,
|
||||
"end": 0,
|
||||
"name": "oxygenHydrogenDistance",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
@ -467,12 +539,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 775,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"abs_path": false,
|
||||
"commentStart": 775,
|
||||
"end": 0,
|
||||
"name": "bondAngle",
|
||||
"name": {
|
||||
"commentStart": 775,
|
||||
"end": 0,
|
||||
"name": "bondAngle",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
@ -493,11 +573,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 765,
|
||||
"end": 0,
|
||||
"name": "toRadians",
|
||||
"name": {
|
||||
"commentStart": 765,
|
||||
"end": 0,
|
||||
"name": "toRadians",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 765,
|
||||
"end": 0,
|
||||
@ -507,11 +595,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 761,
|
||||
"end": 0,
|
||||
"name": "cos",
|
||||
"name": {
|
||||
"commentStart": 761,
|
||||
"end": 0,
|
||||
"name": "cos",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 761,
|
||||
"end": 0,
|
||||
@ -553,12 +649,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 809,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"abs_path": false,
|
||||
"commentStart": 809,
|
||||
"end": 0,
|
||||
"name": "oxygenHydrogenDistance",
|
||||
"name": {
|
||||
"commentStart": 809,
|
||||
"end": 0,
|
||||
"name": "oxygenHydrogenDistance",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
@ -569,12 +673,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 848,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"abs_path": false,
|
||||
"commentStart": 848,
|
||||
"end": 0,
|
||||
"name": "bondAngle",
|
||||
"name": {
|
||||
"commentStart": 848,
|
||||
"end": 0,
|
||||
"name": "bondAngle",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
@ -595,11 +707,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 838,
|
||||
"end": 0,
|
||||
"name": "toRadians",
|
||||
"name": {
|
||||
"commentStart": 838,
|
||||
"end": 0,
|
||||
"name": "toRadians",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 838,
|
||||
"end": 0,
|
||||
@ -609,11 +729,19 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 834,
|
||||
"end": 0,
|
||||
"name": "sin",
|
||||
"name": {
|
||||
"commentStart": 834,
|
||||
"end": 0,
|
||||
"name": "sin",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 834,
|
||||
"end": 0,
|
||||
@ -652,20 +780,36 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"commentStart": 921,
|
||||
"elements": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 922,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetX",
|
||||
"name": {
|
||||
"commentStart": 922,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetX",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 939,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetY",
|
||||
"name": {
|
||||
"commentStart": 939,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetY",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"end": 0,
|
||||
@ -674,20 +818,36 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 957,
|
||||
"end": 0,
|
||||
"name": "hydrogenRadius",
|
||||
"name": {
|
||||
"commentStart": 957,
|
||||
"end": 0,
|
||||
"name": "hydrogenRadius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 910,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"name": {
|
||||
"commentStart": 910,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 910,
|
||||
"end": 0,
|
||||
@ -728,12 +888,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"elements": [
|
||||
{
|
||||
"argument": {
|
||||
"abs_path": false,
|
||||
"commentStart": 1002,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetX",
|
||||
"name": {
|
||||
"commentStart": 1002,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetX",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 1001,
|
||||
"end": 0,
|
||||
@ -743,12 +911,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 1019,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetY",
|
||||
"name": {
|
||||
"commentStart": 1019,
|
||||
"end": 0,
|
||||
"name": "hydrogenOffsetY",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"end": 0,
|
||||
@ -757,20 +933,36 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 1037,
|
||||
"end": 0,
|
||||
"name": "hydrogenRadius",
|
||||
"name": {
|
||||
"commentStart": 1037,
|
||||
"end": 0,
|
||||
"name": "hydrogenRadius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"abs_path": false,
|
||||
"commentStart": 989,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"name": {
|
||||
"commentStart": 989,
|
||||
"end": 0,
|
||||
"name": "createAtom",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
"type": "Name"
|
||||
},
|
||||
"commentStart": 989,
|
||||
"end": 0,
|
||||
@ -815,12 +1007,20 @@ description: Result of parsing bad_units_in_annotation.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"abs_path": false,
|
||||
"commentStart": 30,
|
||||
"end": 0,
|
||||
"name": "nm",
|
||||
"name": {
|
||||
"commentStart": 30,
|
||||
"end": 0,
|
||||
"name": "nm",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user