Skip to content

Commit

Permalink
Yay debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
nddrylliog committed Sep 21, 2010
1 parent e3c47dd commit 863982c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/rock/frontend/AstBuilder.ooc
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ AstBuilder: class {
getRealImportPath: static func (imp: Import, module: Module, params: BuildParams) -> (String, File, File) {
oocImpPath := imp path + ".ooc"
path := FileUtils resolveRedundancies(oocImpPath)
if(params veryVerbose) ("Trying path " + path) println()
(impPath, impElement) := params sourcePath getFile(path)
if(!impElement) {
parent := File new(module path) parent()
if(parent) {
path = FileUtils resolveRedundancies(parent path + File separator + oocImpPath)
if(params veryVerbose) ("Trying path " + path) println()
(impPat2, impElemen2) := params sourcePath getFile(path)
(impPath, impElement) = (impPat2, impElemen2)
}
Expand Down

0 comments on commit 863982c

Please sign in to comment.