Skip to content

Commit 3bb90dc

Browse files
rintaroHarlan
authored andcommitted
[Lexer] Forward declare RawTokenSyntax in 'Lexer.h' (#11292)
So that this doesn't depend on generated Syntax headers.
1 parent 995a0e7 commit 3bb90dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/swift/Parse/Lexer.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@
2121
#include "swift/Basic/SourceLoc.h"
2222
#include "swift/Basic/SourceManager.h"
2323
#include "swift/Parse/Token.h"
24-
#include "swift/Syntax/TokenSyntax.h"
24+
#include "swift/Syntax/References.h"
25+
#include "swift/Syntax/Trivia.h"
2526
#include "llvm/ADT/SmallVector.h"
2627
#include "llvm/Support/SaveAndRestore.h"
2728

2829
namespace swift {
30+
31+
namespace syntax {
32+
struct RawTokenSyntax;
33+
}
34+
2935
/// Given a pointer to the starting byte of a UTF8 character, validate it and
3036
/// advance the lexer past it. This returns the encoded character or ~0U if
3137
/// the encoding is invalid.

0 commit comments

Comments
 (0)