* Show more info on hover for variables Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move hover impls to lsp module Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips Signed-off-by: Nick Cameron <nrc@ncameron.org> * Test the new hovers; fix signature syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tips for kwargs Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
292 lines
8.9 KiB
Plaintext
292 lines
8.9 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing xz_plane.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 173,
|
|
"id": {
|
|
"end": 7,
|
|
"name": "part001",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 28,
|
|
"raw": "'XZ'",
|
|
"start": 24,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 23,
|
|
"name": "startSketchOn",
|
|
"start": 10,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 29,
|
|
"start": 10,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 52,
|
|
"raw": "0",
|
|
"start": 51,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 55,
|
|
"raw": "0",
|
|
"start": 54,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 56,
|
|
"start": 50,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 59,
|
|
"start": 58,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 49,
|
|
"name": "startProfileAt",
|
|
"start": 35,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 60,
|
|
"start": 35,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 82,
|
|
"name": "endAbsolute",
|
|
"start": 71,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 89,
|
|
"raw": "100",
|
|
"start": 86,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 100.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 94,
|
|
"raw": "100",
|
|
"start": 91,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 100.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 95,
|
|
"start": 85,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 70,
|
|
"name": "line",
|
|
"start": 66,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 96,
|
|
"start": 66,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 118,
|
|
"name": "endAbsolute",
|
|
"start": 107,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 125,
|
|
"raw": "100",
|
|
"start": 122,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 100.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 128,
|
|
"raw": "0",
|
|
"start": 127,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 129,
|
|
"start": 121,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 106,
|
|
"name": "line",
|
|
"start": 102,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 130,
|
|
"start": 102,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 143,
|
|
"start": 142,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 141,
|
|
"name": "close",
|
|
"start": 136,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 144,
|
|
"start": 136,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 164,
|
|
"name": "length",
|
|
"start": 158,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 172,
|
|
"left": {
|
|
"end": 168,
|
|
"raw": "5",
|
|
"start": 167,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 5.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 172,
|
|
"raw": "7",
|
|
"start": 171,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 167,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 157,
|
|
"name": "extrude",
|
|
"start": 150,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 173,
|
|
"start": 150,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 173,
|
|
"start": 10,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 173,
|
|
"kind": "const",
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
}
|
|
],
|
|
"end": 174,
|
|
"start": 0
|
|
}
|
|
}
|