compiler: Refactor Language Element Tags
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user