2025-03-17 13:35:49 -07:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of parsing bad_units_in_annotation.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 33,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 123,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 123,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "oxygenRadius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 138,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "0.066",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.066,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"// Generated by Text-to-CAD: draw a water molecule",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Constants for the water molecule"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 184,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 184,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "hydrogenRadius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 201,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "0.053",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.053,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 206,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 248,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 248,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "oxygenHydrogenDistance",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 273,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "0.096",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.096,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 278,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 337,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 337,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "bondAngle",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 349,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "104.5",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 104.5,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 354,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 437,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "createAtom",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"body": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"argument": {
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 489,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "'XY'",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "XY"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 475,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 475,
|
|
|
|
"end": 0,
|
|
|
|
"name": "startSketchOn",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 475,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 509,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 518,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 518,
|
|
|
|
"end": 0,
|
|
|
|
"name": "center",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 526,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 535,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 535,
|
|
|
|
"end": 0,
|
|
|
|
"name": "radius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 502,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 502,
|
|
|
|
"end": 0,
|
|
|
|
"name": "circle",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 502,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"type": "LabeledArg",
|
|
|
|
"label": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 558,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "length",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"arg": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 567,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"left": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 567,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 567,
|
|
|
|
"end": 0,
|
|
|
|
"name": "radius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
"operator": "*",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 576,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 550,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 550,
|
|
|
|
"end": 0,
|
|
|
|
"name": "extrude",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 550,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"type": "CallExpressionKw",
|
|
|
|
"unlabeled": null
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 475,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "PipeExpression",
|
|
|
|
"type": "PipeExpression"
|
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 468,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "ReturnStatement",
|
|
|
|
"type": "ReturnStatement"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 464,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 447,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"identifier": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 448,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "center",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"identifier": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 456,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "radius",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "FunctionExpression",
|
|
|
|
"type": "FunctionExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "fn",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"// Function to create a sphere representing an atom"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 580,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 622,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 622,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "oxygenAtom",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 646,
|
2025-03-17 13:35:49 -07:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 647,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 650,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "0",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 654,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 654,
|
|
|
|
"end": 0,
|
|
|
|
"name": "oxygenRadius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 635,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 635,
|
|
|
|
"end": 0,
|
|
|
|
"name": "createAtom",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 635,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Create the oxygen atom at the origin"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 667,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 718,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 718,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "hydrogenOffsetX",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 736,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"left": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 736,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 736,
|
|
|
|
"end": 0,
|
|
|
|
"name": "oxygenHydrogenDistance",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
"operator": "*",
|
|
|
|
"right": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 775,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"left": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 775,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 775,
|
|
|
|
"end": 0,
|
|
|
|
"name": "bondAngle",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 787,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 765,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 765,
|
|
|
|
"end": 0,
|
|
|
|
"name": "toRadians",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 765,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 761,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 761,
|
|
|
|
"end": 0,
|
|
|
|
"name": "cos",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 761,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Calculate the positions of the hydrogen atoms"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 791,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 791,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 791,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "hydrogenOffsetY",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 809,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"left": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 809,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 809,
|
|
|
|
"end": 0,
|
|
|
|
"name": "oxygenHydrogenDistance",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
"operator": "*",
|
|
|
|
"right": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 848,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"left": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 848,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 848,
|
|
|
|
"end": 0,
|
|
|
|
"name": "bondAngle",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
"operator": "/",
|
|
|
|
"right": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 860,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"raw": "2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": {
|
|
|
|
"value": 2.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 838,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 838,
|
|
|
|
"end": 0,
|
|
|
|
"name": "toRadians",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 838,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 834,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 834,
|
|
|
|
"end": 0,
|
|
|
|
"name": "sin",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 834,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "BinaryExpression",
|
|
|
|
"type": "BinaryExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 863,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 894,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 894,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "hydrogenAtom1",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 921,
|
2025-03-17 13:35:49 -07:00
|
|
|
"elements": [
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 922,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 922,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenOffsetX",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 939,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 939,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenOffsetY",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 957,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 957,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenRadius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 910,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 910,
|
|
|
|
"end": 0,
|
|
|
|
"name": "createAtom",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 910,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 16:23:20 +13:00
|
|
|
"preComments": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"// Create the hydrogen atoms"
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 973,
|
2025-03-17 13:35:49 -07:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 973,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 973,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "hydrogenAtom2",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1000,
|
2025-03-17 13:35:49 -07:00
|
|
|
"elements": [
|
|
|
|
{
|
|
|
|
"argument": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1002,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 1002,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenOffsetX",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1001,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"operator": "-",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "UnaryExpression",
|
|
|
|
"type": "UnaryExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1019,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 1019,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenOffsetY",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
},
|
|
|
|
{
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1037,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 1037,
|
|
|
|
"end": 0,
|
|
|
|
"name": "hydrogenRadius",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 989,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 989,
|
|
|
|
"end": 0,
|
|
|
|
"name": "createAtom",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
},
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 989,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"innerAttrs": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 1,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "settings",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 10,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"key": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 10,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"name": "defaultLengthUnit",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
2025-03-24 20:58:55 +13:00
|
|
|
"abs_path": false,
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 30,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"name": {
|
|
|
|
"commentStart": 30,
|
|
|
|
"end": 0,
|
|
|
|
"name": "nm",
|
|
|
|
"start": 0,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"path": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2025-03-24 20:58:55 +13:00
|
|
|
"type": "Name",
|
|
|
|
"type": "Name"
|
2025-03-17 13:35:49 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"start": 0,
|
|
|
|
"type": "Annotation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"0": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 143,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "inlineComment",
|
|
|
|
"value": "Approximate radius of an oxygen atom",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"1": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 206,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "inlineComment",
|
|
|
|
"value": "Approximate radius of a hydrogen atom",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"2": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 278,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "inlineComment",
|
|
|
|
"value": "Approximate distance between oxygen and hydrogen atoms",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"3": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 354,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "inlineComment",
|
|
|
|
"value": "Bond angle in degrees",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 379,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 33,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2025-03-17 13:35:49 -07:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|