Skip to content

Commit

Permalink
Merge pull request #29 from ShaderFrog/extra-export
Browse files Browse the repository at this point in the history
Adding two ast export types, specifically whitespace
  • Loading branch information
AndrewRayCode authored Jul 6, 2024
2 parents 9f01ea0 + 4ce44ee commit 2397a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"engines": {
"node": ">=16"
},
"version": "4.1.0",
"version": "4.1.1",
"type": "module",
"description": "A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/ast/ast-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface BaseNode {
location?: LocationObject;
}

type Whitespace = string | string[];
export type Whitespace = string | string[];

// Types reused across nodes
export type TypeQualifiers = (
Expand Down Expand Up @@ -222,7 +222,7 @@ export interface FloatConstantNode extends BaseNode {
whitespace: Whitespace;
}

type SimpleStatement =
export type SimpleStatement =
| ContinueStatementNode
| BreakStatementNode
| ReturnStatementNode
Expand Down

0 comments on commit 2397a8d

Please sign in to comment.