File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,6 @@ class SourceFile final : public FileUnit {
582
582
bool hasDelayedBodyParsing () const ;
583
583
584
584
syntax::SourceFileSyntax getSyntaxRoot () const ;
585
- bool hasSyntaxRoot () const ;
586
585
587
586
OpaqueTypeDecl *lookupOpaqueResultType (StringRef MangledName) override ;
588
587
Original file line number Diff line number Diff line change @@ -1088,12 +1088,8 @@ void SourceFile::getInterfaceHash(llvm::SmallString<32> &str) const {
1088
1088
llvm::MD5::stringifyResult (result, str);
1089
1089
}
1090
1090
1091
- bool SourceFile::hasSyntaxRoot () const {
1092
- return ParsingOpts.contains (ParsingFlags::BuildSyntaxTree);
1093
- }
1094
-
1095
1091
syntax::SourceFileSyntax SourceFile::getSyntaxRoot () const {
1096
- assert (hasSyntaxRoot () && " has no syntax root " );
1092
+ assert (shouldBuildSyntaxTree () && " Syntax tree disabled " );
1097
1093
auto &eval = getASTContext ().evaluator ;
1098
1094
auto *mutableThis = const_cast <SourceFile *>(this );
1099
1095
return *evaluateOrDefault (eval, ParseSourceFileRequest{mutableThis}, {})
You can’t perform that action at this time.
0 commit comments