mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #65313 from hborla/fix-macro-expansion-walking
[Macros] Fix type-checking local pattern bindings in macro-expanded closures.
This commit is contained in:
@@ -816,13 +816,6 @@ SourceFile *ModuleDecl::getSourceFileContainingLocation(SourceLoc loc) {
|
||||
return foundSourceFile;
|
||||
}
|
||||
|
||||
bool ModuleDecl::isInGeneratedBuffer(SourceLoc loc) {
|
||||
SourceFile *file = getSourceFileContainingLocation(loc);
|
||||
if (!file)
|
||||
return false;
|
||||
return file->Kind == SourceFileKind::MacroExpansion;
|
||||
}
|
||||
|
||||
std::pair<unsigned, SourceLoc>
|
||||
ModuleDecl::getOriginalLocation(SourceLoc loc) const {
|
||||
assert(loc.isValid());
|
||||
|
||||
Reference in New Issue
Block a user