mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 21:58:11 +00:00
Switch executable semantics to use ErrorBuilder directly and relocate macros (#1184)
This commit is contained in:
1 parent
6542506cdc
commit
87e58f5db3
37 files changed
+327
-376
No files matched your search
@@ -175,14 +175,14 @@ auto FunctionDeclaration::Create(
|
||||
case AstNodeKind::BindingPattern: {
|
||||
Nonnull<BindingPattern*> bp = &cast<BindingPattern>(*param);
|
||||
if (me_pattern.has_value() || bp->name() != "me") {
|
||||
return FATAL_COMPILATION_ERROR(source_loc)
|
||||
return CompilationError(source_loc)
|
||||
<< "illegal binding pattern in implicit parameter list";
|
||||
}
|
||||
me_pattern = bp;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return FATAL_COMPILATION_ERROR(source_loc)
|
||||
return CompilationError(source_loc)
|
||||
<< "illegal AST node in implicit parameter list";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user