@@ -45,7 +45,8 @@ public struct CST {
|
||||
public var tipe: CST.Tipe
|
||||
|
||||
public init(
|
||||
identifier: Identifier, withType tipe: CST.Tipe, withInitializer initializer: Categories.Expression?
|
||||
identifier: Identifier, withType tipe: CST.Tipe,
|
||||
withInitializer initializer: Categories.Expression?
|
||||
) {
|
||||
self.identifier = identifier
|
||||
self.initializer = initializer
|
||||
@@ -227,7 +228,6 @@ public struct CST {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public struct Declaration {}
|
||||
|
||||
public struct Control: CustomStringConvertible, Categories.Declaration {
|
||||
|
||||
@@ -68,7 +68,9 @@ public protocol CSTVisitor<T> {
|
||||
|
||||
// Statements
|
||||
func visit(node: CST.Statements, driver: CSTVisitorDriver, context: T) -> Result<T>
|
||||
func visit(node: CST.VariableDeclarationStatement, driver: CSTVisitorDriver, context: T) -> Result<T>
|
||||
func visit(
|
||||
node: CST.VariableDeclarationStatement, driver: CSTVisitorDriver, context: T
|
||||
) -> Result<T>
|
||||
func visit(node: CST.ExpressionStatement, driver: CSTVisitorDriver, context: T) -> Result<T>
|
||||
|
||||
// Expressions
|
||||
|
||||
Reference in New Issue
Block a user