mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
reland r4968, with a bugfix to avoid breaking the lexer measuring token lengths.
Original message: SIL Parsing: add plumbing to know when we're parsing a .sil file Enhance the lexer to lex "sil" as a keyword in sil mode. Swift SVN r4988
This commit is contained in:
@@ -1034,7 +1034,7 @@ public:
|
||||
/// Responds to a REPL input. Returns true if the repl should continue,
|
||||
/// false if it should quit.
|
||||
bool handleREPLInput(REPLInputKind inputKind, llvm::StringRef Line) {
|
||||
Lexer L(Line, Context.SourceMgr, nullptr);
|
||||
Lexer L(Line, Context.SourceMgr, nullptr, false /*not SIL*/);
|
||||
switch (inputKind) {
|
||||
case REPLInputKind::REPLQuit:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user