mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #63341 from hborla/generalize-macro-expansion-expr
[Macros] Generalize `MacroExpansionExpr` and use it for both freestanding and attached macros.
This commit is contained in:
@@ -2616,18 +2616,6 @@ MacroMissingPound::create(ConstraintSystem &cs, MacroDecl *macro,
|
||||
return new (cs.getAllocator()) MacroMissingPound(cs, macro, locator);
|
||||
}
|
||||
|
||||
bool MacroMissingArguments::diagnose(const Solution &solution,
|
||||
bool asNote) const {
|
||||
AddMissingMacroArguments failure(solution, macro, getLocator());
|
||||
return failure.diagnose(asNote);
|
||||
}
|
||||
|
||||
MacroMissingArguments *
|
||||
MacroMissingArguments::create(ConstraintSystem &cs, MacroDecl *macro,
|
||||
ConstraintLocator *locator) {
|
||||
return new (cs.getAllocator()) MacroMissingArguments(cs, macro, locator);
|
||||
}
|
||||
|
||||
bool AllowGlobalActorMismatch::diagnose(const Solution &solution,
|
||||
bool asNote) const {
|
||||
GlobalActorFunctionMismatchFailure failure(solution, getFromType(),
|
||||
|
||||
Reference in New Issue
Block a user