diff options
author | Shevek <[email protected]> | 2008-05-31 17:57:45 +0000 |
---|---|---|
committer | Shevek <[email protected]> | 2008-05-31 17:57:45 +0000 |
commit | f3b8b1ee52e5277a43f8b36728cc74b79a5a8ef6 (patch) | |
tree | b10e9f03170ee854165aaf0701d17807970da36b /src/java/org/anarres/cpp/Source.java | |
parent | 6c4d542b4e4c29367a93ac825ab38ba24d0aea54 (diff) |
make vfiles work better
Diffstat (limited to 'src/java/org/anarres/cpp/Source.java')
-rw-r--r-- | src/java/org/anarres/cpp/Source.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/anarres/cpp/Source.java b/src/java/org/anarres/cpp/Source.java index f89b1f8..0f9efa4 100644 --- a/src/java/org/anarres/cpp/Source.java +++ b/src/java/org/anarres/cpp/Source.java @@ -133,12 +133,12 @@ public abstract class Source implements Iterable<Token> { * it will ask the parent Source, and so forth recursively. * If no Source on the stack is a FileLexerSource, returns null. */ - /* pp */ File getFile() { + /* pp */ String getPath() { Source parent = getParent(); while (parent != null) { - File file = parent.getFile(); - if (file != null) - return file; + String path = parent.getPath(); + if (path != null) + return path; parent = parent.getParent(); } return null; |