Delete libSyntax

This commit is contained in:
Robert Widmann
2022-11-16 13:31:41 -08:00
parent 980d40951f
commit 4c162b2aeb
74 changed files with 22 additions and 8938 deletions

View File

@@ -60,7 +60,6 @@ namespace swift {
/// \c llvm::PointerIntPair. This is in particular guaranteed for pointers
/// to C/C++ objects and for pointers that were generated by Swift and passed
/// to the compiler via a C API (in particular \c CLibParseActions ).
typedef const void *OpaqueSyntaxNode;
class Parser;
class SerializationOptions;
class SILOptions;
@@ -68,8 +67,6 @@ namespace swift {
class SourceFile;
enum class SourceFileKind;
class SourceManager;
class SyntaxParseActions;
class SyntaxParsingCache;
struct TBDGenOptions;
class Token;
class TopLevelContext;
@@ -300,16 +297,14 @@ namespace swift {
public:
ParserUnit(SourceManager &SM, SourceFileKind SFKind, unsigned BufferID,
const LangOptions &LangOpts, const TypeCheckerOptions &TyOpts,
const SILOptions &SILOpts, StringRef ModuleName,
std::shared_ptr<SyntaxParseActions> spActions = nullptr,
SyntaxParsingCache *SyntaxCache = nullptr);
const SILOptions &SILOpts, StringRef ModuleName);
ParserUnit(SourceManager &SM, SourceFileKind SFKind, unsigned BufferID);
ParserUnit(SourceManager &SM, SourceFileKind SFKind, unsigned BufferID,
unsigned Offset, unsigned EndOffset);
~ParserUnit();
OpaqueSyntaxNode parse();
void parse();
Parser &getParser();
SourceFile &getSourceFile();