Skip to content

Commit 1893294

Browse files
committed
Making location optional
1 parent f895b27 commit 1893294

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"engines": {
44
"node": ">=16"
55
},
6-
"version": "1.4.0",
6+
"version": "1.4.1",
77
"description": "A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments",
88
"scripts": {
99
"prepare": "npm run build && ./prepublish.sh",

src/ast/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type LocationObject = {
1212
};
1313

1414
export interface BaseNode {
15-
location: LocationObject;
15+
location?: LocationObject;
1616
}
1717

1818
export interface LiteralNode extends BaseNode {

0 commit comments

Comments
 (0)