diff options
author | Shevek <[email protected]> | 2014-02-07 18:11:04 -0800 |
---|---|---|
committer | Shevek <[email protected]> | 2014-02-07 18:11:04 -0800 |
commit | 2bb9f333e3f8bb81974b8cf1718c3245444871bf (patch) | |
tree | 1350fed5b0bb9f509740cf7f341fec36d97a9a0f | |
parent | ec176d2a623f274ad8b0d7962b88a2f7a67446ca (diff) |
Fix #11: Make getPath() public.
-rw-r--r-- | src/main/java/org/anarres/cpp/FileLexerSource.java | 2 | ||||
-rw-r--r-- | src/main/java/org/anarres/cpp/InputLexerSource.java | 2 | ||||
-rw-r--r-- | src/main/java/org/anarres/cpp/Source.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/anarres/cpp/FileLexerSource.java b/src/main/java/org/anarres/cpp/FileLexerSource.java index bd6cbb7..3f5a0d3 100644 --- a/src/main/java/org/anarres/cpp/FileLexerSource.java +++ b/src/main/java/org/anarres/cpp/FileLexerSource.java @@ -74,7 +74,7 @@ public class FileLexerSource extends LexerSource { * This is not necessarily the same as getFile().getPath() in case we are in a chroot. */ @Override - /* pp */ String getPath() { + public String getPath() { return path; } diff --git a/src/main/java/org/anarres/cpp/InputLexerSource.java b/src/main/java/org/anarres/cpp/InputLexerSource.java index fac7c51..5eb8f94 100644 --- a/src/main/java/org/anarres/cpp/InputLexerSource.java +++ b/src/main/java/org/anarres/cpp/InputLexerSource.java @@ -48,7 +48,7 @@ public class InputLexerSource extends LexerSource { } @Override - /* pp */ String getPath() { + public String getPath() { return "<standard-input>"; } diff --git a/src/main/java/org/anarres/cpp/Source.java b/src/main/java/org/anarres/cpp/Source.java index 291113a..76ee1f2 100644 --- a/src/main/java/org/anarres/cpp/Source.java +++ b/src/main/java/org/anarres/cpp/Source.java @@ -130,7 +130,7 @@ public abstract class Source implements Iterable<Token>, Closeable { * If no Source on the stack is a FileLexerSource, returns null. */ @CheckForNull - /* pp */ String getPath() { + public String getPath() { Source parent = getParent(); if (parent != null) return parent.getPath(); |