Add frontend flag -warn-if-astscope-lookup w/ test

This commit is contained in:
David Ungar
2019-08-06 23:17:49 -07:00
parent 369e31e463
commit 09342dfa47
5 changed files with 23 additions and 2 deletions

View File

@@ -261,9 +261,13 @@ namespace swift {
/// Someday, ASTScopeLookup will supplant lookup in the parser
bool DisableParserLookup = false;
/// Sound we compare to ASTScope-based resolution for debugging?
/// Should we compare to ASTScope-based resolution for debugging?
bool CompareToASTScopeLookup = false;
/// Since some tests fail if the warning is output, use a flag to decide
/// whether it is. The warning is useful for testing.
bool WarnIfASTScopeLookup = false;
/// Whether to use the import as member inference system
///
/// When importing a global, try to infer whether we can import it as a