mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Revert "[Parser] Decouple the parser from AST creation (part 1)""
This commit is contained in:
committed by
Rintaro Ishizaki
parent
d236a178ca
commit
f0395a469a
@@ -155,6 +155,7 @@ private:
|
||||
node.present = true;
|
||||
}
|
||||
|
||||
public:
|
||||
OpaqueSyntaxNode recordToken(tok tokenKind,
|
||||
ArrayRef<ParsedTriviaPiece> leadingTrivia,
|
||||
ArrayRef<ParsedTriviaPiece> trailingTrivia,
|
||||
@@ -201,6 +202,10 @@ private:
|
||||
auto result = NodeLookup(lexerOffset, ckind);
|
||||
return {result.length, result.node};
|
||||
}
|
||||
|
||||
OpaqueSyntaxNodeKind getOpaqueKind() override {
|
||||
return OpaqueSyntaxNodeKind::SwiftSyntax;
|
||||
}
|
||||
};
|
||||
|
||||
static swiftparser_diagnostic_severity_t getSeverity(DiagnosticKind Kind) {
|
||||
|
||||
Reference in New Issue
Block a user