mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[libSyntax] Don't print missing nodes
This commit is contained in:
@@ -53,6 +53,9 @@ static void printSyntaxKind(SyntaxKind Kind, llvm::raw_ostream &OS,
|
||||
|
||||
} // end of anonymous namespace
|
||||
void RawSyntax::print(llvm::raw_ostream &OS, SyntaxPrintOptions Opts) const {
|
||||
if (isMissing())
|
||||
return;
|
||||
|
||||
const bool PrintKind = Opts.PrintSyntaxKind && !isToken() &&
|
||||
!isTrivialSyntaxKind(Kind);
|
||||
if (PrintKind) {
|
||||
|
||||
Reference in New Issue
Block a user