aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/anarres/cpp/Source.java
diff options
context:
space:
mode:
authorShevek <[email protected]>2008-05-31 17:57:45 +0000
committerShevek <[email protected]>2008-05-31 17:57:45 +0000
commitf3b8b1ee52e5277a43f8b36728cc74b79a5a8ef6 (patch)
treeb10e9f03170ee854165aaf0701d17807970da36b /src/java/org/anarres/cpp/Source.java
parent6c4d542b4e4c29367a93ac825ab38ba24d0aea54 (diff)
make vfiles work better
Diffstat (limited to 'src/java/org/anarres/cpp/Source.java')
-rw-r--r--src/java/org/anarres/cpp/Source.java8
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;