From 4ce44ee9187b11c057e83a227bfd7c2eecafd41f Mon Sep 17 00:00:00 2001 From: Andrew Ray Date: Sat, 6 Jul 2024 10:56:04 -0700 Subject: [PATCH] Adding two ast export types, specifically whitespace --- package.json | 2 +- src/ast/ast-types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bcb000b..d051124 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/ast/ast-types.ts b/src/ast/ast-types.ts index 8449d6f..fa96064 100644 --- a/src/ast/ast-types.ts +++ b/src/ast/ast-types.ts @@ -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 = ( @@ -222,7 +222,7 @@ export interface FloatConstantNode extends BaseNode { whitespace: Whitespace; } -type SimpleStatement = +export type SimpleStatement = | ContinueStatementNode | BreakStatementNode | ReturnStatementNode