@@ -58,7 +58,7 @@ public struct CompilerContext {
|
||||
/// Update a compiler context
|
||||
///
|
||||
/// Create a new compiler context based on the current with the same types and new names.
|
||||
///
|
||||
///
|
||||
/// - Parameter names: a ``LexicalScopes`` with the updated names for the newly created compiler context.
|
||||
/// - Returns: A new compiler context based on the current with the same types and new names.
|
||||
public func update(newNames names: LexicalScopes) -> CompilerContext {
|
||||
@@ -68,12 +68,11 @@ public struct CompilerContext {
|
||||
/// Update a compiler context
|
||||
///
|
||||
/// Create a new compiler context based on the current with the same names and new types.
|
||||
///
|
||||
///
|
||||
/// - Parameter types: a ``LexicalScopes`` with the updated types for the newly created compiler context.
|
||||
/// - Returns: A new compiler context based on the current with the same names and new types.
|
||||
public func update(newTypes types: LexicalScopes) -> CompilerContext {
|
||||
return CompilerContext(withNames: self.names, withTypes: types)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user