From ebabbd997bc5a5b4f82a94184369bf15278ccf0a Mon Sep 17 00:00:00 2001 From: Semenov Dmitry Date: Sun, 28 Jan 2024 01:32:08 +0400 Subject: [PATCH] Small fix --- .../Declarations/GDDictionaryKeyValueDeclaration.cs | 4 ++-- src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs | 4 ++-- src/GDShrapt.Reader/GDShrapt.Reader.csproj | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs b/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs index 6813975..e577dc3 100644 --- a/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs +++ b/src/GDShrapt.Reader/Declarations/GDDictionaryKeyValueDeclaration.cs @@ -14,12 +14,12 @@ public GDExpression Key } public GDColon Colon { - get => (GDColon)_form.Token1; + get => _form.Token1 as GDColon; set => _form.Token1 = value; } public GDAssign Assign { - get => (GDAssign)_form.Token1; + get => _form.Token1 as GDAssign; set => _form.Token1 = value; } public GDExpression Value diff --git a/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs b/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs index 8170b72..4ecc3ba 100644 --- a/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs +++ b/src/GDShrapt.Reader/Declarations/GDEnumValueDeclaration.cs @@ -15,12 +15,12 @@ public GDIdentifier Identifier } public GDColon Colon { - get => (GDColon)_form.Token1; + get => _form.Token1 as GDColon; set => _form.Token1 = value; } public GDAssign Assign { - get => (GDAssign)_form.Token1; + get => _form.Token1 as GDAssign; set => _form.Token1 = value; } public GDExpression Value diff --git a/src/GDShrapt.Reader/GDShrapt.Reader.csproj b/src/GDShrapt.Reader/GDShrapt.Reader.csproj index c91119b..f04ebff 100644 --- a/src/GDShrapt.Reader/GDShrapt.Reader.csproj +++ b/src/GDShrapt.Reader/GDShrapt.Reader.csproj @@ -3,7 +3,7 @@ netstandard2.0 true - 4.1.4-alpha + 4.1.5-alpha elamaunt GDShrapt GDShrapt.Reader is .Net library and object-oriented one-pass parser of GDScript. It can build a lexical tree of GDScript code or generate a new code from scratch. @@ -16,8 +16,8 @@ Usage: Just create a GDScriptReader instance and call methods from it.https://github.com/elamaunt/GDShrapt git GDShrapt GDScript reader parser codegeneration Godot lexical analyzer - 4.1.4 - 4.1.4 + 4.1.5 + 4.1.5 true