Wrap FunctionName in a newtype struct.
Function names display differently than normal strings since they need quotes and escaping. Move the FunctionName type into its own module.
This commit is contained in:
@@ -52,7 +52,7 @@ impl Function {
|
||||
|
||||
/// Create a new empty, anomymous function.
|
||||
pub fn new() -> Function {
|
||||
Self::with_name_signature(FunctionName::new(), Signature::new())
|
||||
Self::with_name_signature(FunctionName::default(), Signature::new())
|
||||
}
|
||||
|
||||
/// Get the signature of this function.
|
||||
|
||||
Reference in New Issue
Block a user