From 7b78453ff838780eb7d5af7ebe88b1831579673e Mon Sep 17 00:00:00 2001 From: yliuuuu <107505258+yliuuuu@users.noreply.github.com> Date: Thu, 16 May 2024 09:57:07 -0700 Subject: [PATCH] delete staticTypeMeta (#1465) --- .../org/partiql/lang/ast/StaticTypeMeta.kt | 20 ------------------- .../kotlin/org/partiql/lang/eval/Thunk.kt | 1 - .../org/partiql/lang/eval/ThunkAsync.kt | 1 - 3 files changed, 22 deletions(-) delete mode 100644 partiql-lang/src/main/kotlin/org/partiql/lang/ast/StaticTypeMeta.kt diff --git a/partiql-lang/src/main/kotlin/org/partiql/lang/ast/StaticTypeMeta.kt b/partiql-lang/src/main/kotlin/org/partiql/lang/ast/StaticTypeMeta.kt deleted file mode 100644 index 94f649a179..0000000000 --- a/partiql-lang/src/main/kotlin/org/partiql/lang/ast/StaticTypeMeta.kt +++ /dev/null @@ -1,20 +0,0 @@ -package org.partiql.lang.ast - -import org.partiql.types.StaticType - -/** - * Represents a static type for an AST element. - * - * Note: The (de)serialization based on ISL mappers does not work as expected but does not break anything since no one uses it today. - * TODO: issue to track fixing the (de)serialization https://github.com/partiql/partiql-lang-kotlin/issues/512 - */ -data class StaticTypeMeta(val type: StaticType) : Meta { - - override fun toString() = type.toString() - - override val tag = TAG - - companion object { - const val TAG = "\$static_type" - } -} diff --git a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/Thunk.kt b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/Thunk.kt index 3b489a7d5d..5187f30204 100644 --- a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/Thunk.kt +++ b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/Thunk.kt @@ -19,7 +19,6 @@ import org.partiql.errors.ErrorBehaviorInPermissiveMode import org.partiql.errors.ErrorCode import org.partiql.errors.Property import org.partiql.lang.ast.SourceLocationMeta -import org.partiql.lang.ast.StaticTypeMeta import org.partiql.lang.domains.staticType import org.partiql.lang.types.StaticTypeUtils.isInstance diff --git a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/ThunkAsync.kt b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/ThunkAsync.kt index c314eb68aa..e40014f719 100644 --- a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/ThunkAsync.kt +++ b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/ThunkAsync.kt @@ -21,7 +21,6 @@ import org.partiql.errors.ErrorBehaviorInPermissiveMode import org.partiql.errors.ErrorCode import org.partiql.errors.Property import org.partiql.lang.ast.SourceLocationMeta -import org.partiql.lang.ast.StaticTypeMeta import org.partiql.lang.domains.staticType import org.partiql.lang.types.StaticTypeUtils.isInstance