compiler: Refactor Language Element Tags

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
Will Hawkins
2026-06-15 21:16:52 -04:00
parent d7022725ed
commit d22776b018
10 changed files with 207 additions and 228 deletions
+3 -3
View File
@@ -29,7 +29,7 @@ public protocol CompilableValue {
public protocol MaybeParsableType {
static func MaybeParseType(
type: SwiftTreeSitter.Node, withContext: CSTCompilerContext
) -> Result<CST.Tipe?>
) -> Result<CST.Tipe>
}
public protocol ParsableType {
@@ -40,7 +40,7 @@ public protocol ParsableType {
public protocol ParsableExpression {
static func ParseExpression(
node: Node, withContext context: CSTCompilerContext
) -> Result<CST.AnExpression>
) -> Result<CST.Categories.Expression>
}
public protocol Parsable<C> {
@@ -53,7 +53,7 @@ public protocol Parsable<C> {
public protocol ParsableStatement {
static func ParseStatement(
node: Node, withContext context: CSTCompilerContext
) -> Result<CST.Statement>
) -> Result<CST.Categories.Statement>
}
public protocol CSTVisitor<T> {