Add pkl:syntax stdlib module (#1821)

This commit is contained in:
Islon Scherer authored and GitHub committed 2026-10-23 15:51:22 +02:00
1 parent 0cb9843af7
commit 939e844c03
48 files changed
+3149 -214

No files matched your search

+4 -11
View File
@@ -30,6 +30,7 @@
module pkl.reflect
import "pkl:base"
import "pkl:syntax"
/// A mirror for the [Any] type.
const anyType: DeclaredType = DeclaredType(Class(Any))
@@ -166,7 +167,7 @@ external const function TypeVariable(referent: TypeParameter): TypeVariable
/// A program declaration.
abstract external class Declaration {
/// The source location of this declaration.
location: SourceLocation
location: syntax.SourceLocation
/// The documentation comment for this declaration, if any.
docComment: String?
@@ -457,13 +458,5 @@ external class TypeVariable extends Type {
}
/// A source location within a module.
external class SourceLocation {
/// The 1-based line number of this source location.
line: UInt
/// The 1-based column number of this source location.
column: UInt
/// The display URI of this source location.
displayUri: String
}
@Deprecated { since = "0.33.0"; replaceWith = "syntax.SourceLocation" }
typealias SourceLocation = syntax.SourceLocation