Skip to content

Commit

Permalink
Add missing nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
KavinduZoysa committed Aug 19, 2024
1 parent 76c152e commit 207d34e
Show file tree
Hide file tree
Showing 12 changed files with 319 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ public List<SyntaxKind> getSyntaxKinds() {
SyntaxKind.READONLY_TYPE_DESC,
SyntaxKind.FUTURE_TYPE_DESC,
SyntaxKind.SINGLETON_TYPE_DESC,
SyntaxKind.INTERSECTION_TYPE_DESC
SyntaxKind.INTERSECTION_TYPE_DESC,
SyntaxKind.QUALIFIED_NAME_REFERENCE,
SyntaxKind.SIMPLE_NAME_REFERENCE,
SyntaxKind.TYPEDESC_TYPE_DESC,
SyntaxKind.DISTINCT_TYPE_DESC,
SyntaxKind.OPTIONAL_TYPE_DESC,
SyntaxKind.PARENTHESISED_TYPE_DESC
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ public Object[][] dataProvider() {
{"singleDocGeneration17.json"},
{"singleDocGeneration18.json"},
{"singleDocGeneration19.json"},
{"singleDocGeneration20.json"},
{"singleDocGeneration21.json"},
{"singleDocGeneration22.json"},
{"singleDocGeneration23.json"},
{"singleDocGeneration24.json"},
{"singleDocGeneration25.json"},
{"singleDocGeneration26.json"},
{"singleDocGeneration27.json"},
{"singleDocGeneration28.json"},
};
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 112,
"character": 11
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 112,
"character": 0
},
"end": {
"line": 112,
"character": 18
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 114,
"character": 17
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 114,
"character": 0
},
"end": {
"line": 114,
"character": 30
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 115,
"character": 17
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 115,
"character": 0
},
"end": {
"line": 115,
"character": 30
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 116,
"character": 14
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 116,
"character": 0
},
"end": {
"line": 116,
"character": 24
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 117,
"character": 31
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 117,
"character": 0
},
"end": {
"line": 117,
"character": 58
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 119,
"character": 15
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 119,
"character": 0
},
"end": {
"line": 119,
"character": 30
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 121,
"character": 20
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 121,
"character": 0
},
"end": {
"line": 121,
"character": 36
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 123,
"character": 18
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 123,
"character": 0
},
"end": {
"line": 123,
"character": 24
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"position": {
"line": 124,
"character": 11
},
"source": "singleDocGeneration.bal",
"expected": [
{
"title": "Document this",
"command": {
"title": "Document this",
"command": "ADD_DOC",
"arguments": [
{
"key": "node.range",
"value": {
"start": {
"line": 124,
"character": 0
},
"end": {
"line": 124,
"character": 18
}
}
}
]
},
"resolvable": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,18 @@ type IntArray int[];
type Pi 3.14285714286d;

type ReadonlyInt readonly & int;

type MyInt 12;
type MyInt2 MyInt;

type MyXMLComment xml:Comment;
type MyXMLElement xml:Element;
type MyXMLText xml:Text;
type MyXMLProcessingInstruction xml:ProcessingInstruction;

type MyTypeDesc typedesc<int>;

type MyDistinctError distinct error;

type MyOptionalInt int?;
type MyInt3 (int);

0 comments on commit 207d34e

Please sign in to comment.