diff options
Diffstat (limited to 'java/com/google/turbine/parse/Lexer.java')
-rw-r--r-- | java/com/google/turbine/parse/Lexer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/google/turbine/parse/Lexer.java b/java/com/google/turbine/parse/Lexer.java index 58b092f..2d8422a 100644 --- a/java/com/google/turbine/parse/Lexer.java +++ b/java/com/google/turbine/parse/Lexer.java @@ -16,6 +16,8 @@ package com.google.turbine.parse; +import com.google.turbine.diag.SourceFile; + /** A Java lexer. */ public interface Lexer { /** Returns the next token in the input stream, or {@code EOF}. */ @@ -26,4 +28,7 @@ public interface Lexer { /** Returns the current position in the input. */ int position(); + + /** Returns the source file for diagnostics. */ + SourceFile source(); } |