mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "libSyntax: create a basic infrastructure for generating libSyntax entities by using Parser."
This reverts commit ee7a06276d.
It causes build failures like "'swift/Syntax/SyntaxNodes.h' file not found".
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
#include "swift/Basic/SourceLoc.h"
|
||||
#include "swift/Basic/STLExtras.h"
|
||||
#include "swift/Parse/Token.h"
|
||||
#include "swift/Syntax/SyntaxNodes.h"
|
||||
#include "swift/Syntax/SyntaxParsingContext.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/SetVector.h"
|
||||
@@ -1084,23 +1082,9 @@ public:
|
||||
return (bool)AllCorrectedTokens;
|
||||
}
|
||||
|
||||
syntax::SourceFileSyntax getSyntaxRoot() const {
|
||||
assert(SyntaxRoot && "no syntax root is set.");
|
||||
return *SyntaxRoot;
|
||||
}
|
||||
|
||||
private:
|
||||
friend class syntax::SyntaxParsingContext;
|
||||
friend class syntax::SyntaxParsingContextRoot;
|
||||
|
||||
/// If not None, the underlying vector should contain tokens of this source file.
|
||||
Optional<std::vector<Token>> AllCorrectedTokens;
|
||||
|
||||
/// All of the raw token syntax nodes in the underlying source.
|
||||
std::vector<syntax::RawTokenInfo> AllRawTokenSyntax;
|
||||
|
||||
/// The root of the syntax tree representing the source file.
|
||||
Optional<syntax::SourceFileSyntax> SyntaxRoot;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user