mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add test for the SwiftSyntax tree produced when parsing '= super' in a module interface
This commit is contained in:
@@ -600,6 +600,8 @@ int parseFile(
|
||||
Invocation.getLangOptions().VerifySyntaxTree = options::VerifySyntaxTree;
|
||||
Invocation.getLangOptions().RequestEvaluatorGraphVizPath = options::GraphVisPath;
|
||||
Invocation.getFrontendOptions().InputsAndOutputs.addInputFile(InputFileName);
|
||||
if (InputFileName.endswith(".swiftinterface"))
|
||||
Invocation.setInputKind(InputFileKind::SwiftModuleInterface);
|
||||
Invocation.setMainExecutablePath(
|
||||
llvm::sys::fs::getMainExecutable(MainExecutablePath,
|
||||
reinterpret_cast<void *>(&anchorForGetMainExecutable)));
|
||||
|
||||
Reference in New Issue
Block a user