Files
modeling-app/rust/kcl-lib/tests/circle_three_point/ast.snap
Nick Cameron df278c7e6a Various hover improvements (#5617)
* 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>
2025-03-04 09:53:31 +00:00

228 lines
7.0 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing circle_three_point.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 124,
"id": {
"end": 9,
"name": "sketch001",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 30,
"raw": "'XY'",
"start": 26,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"callee": {
"end": 25,
"name": "startSketchOn",
"start": 12,
"type": "Identifier"
},
"end": 31,
"start": 12,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 56,
"name": "p1",
"start": 54,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 62,
"raw": "25",
"start": 60,
"type": "Literal",
"type": "Literal",
"value": {
"value": 25.0,
"suffix": "None"
}
},
{
"end": 66,
"raw": "25",
"start": 64,
"type": "Literal",
"type": "Literal",
"value": {
"value": 25.0,
"suffix": "None"
}
}
],
"end": 67,
"start": 59,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 71,
"name": "p2",
"start": 69,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 77,
"raw": "30",
"start": 75,
"type": "Literal",
"type": "Literal",
"value": {
"value": 30.0,
"suffix": "None"
}
},
{
"end": 81,
"raw": "20",
"start": 79,
"type": "Literal",
"type": "Literal",
"value": {
"value": 20.0,
"suffix": "None"
}
}
],
"end": 82,
"start": 74,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 86,
"name": "p3",
"start": 84,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 92,
"raw": "27",
"start": 90,
"type": "Literal",
"type": "Literal",
"value": {
"value": 27.0,
"suffix": "None"
}
},
{
"end": 96,
"raw": "15",
"start": 94,
"type": "Literal",
"type": "Literal",
"value": {
"value": 15.0,
"suffix": "None"
}
}
],
"end": 97,
"start": 89,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 53,
"name": "circleThreePoint",
"start": 37,
"type": "Identifier"
},
"end": 98,
"start": 37,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 118,
"name": "length",
"start": 112,
"type": "Identifier"
},
"arg": {
"end": 123,
"raw": "10",
"start": 121,
"type": "Literal",
"type": "Literal",
"value": {
"value": 10.0,
"suffix": "None"
}
}
}
],
"callee": {
"end": 111,
"name": "extrude",
"start": 104,
"type": "Identifier"
},
"end": 124,
"start": 104,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 124,
"start": 12,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 124,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 125,
"start": 0
}
}