Skip to content

Commit

Permalink
Prefix with 'ooc' instead of something weird.
Browse files Browse the repository at this point in the history
  • Loading branch information
nddrylliog committed Feb 19, 2013
1 parent 3302055 commit dde4229
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions source/rock/middle/Module.ooc
Expand Up @@ -21,11 +21,6 @@ Module: class extends Node {

// all variants of useful paths
path, fullName, simpleName, underName, pathElement, oocPath: String

// the use def that imported us - at this point, every ooc
// file comes from a use def somewhere - the main program might
// be a 'virtual' use def, but still one.
useDef: UseDef

// mostly controls the generation of an implicit main
main := false
Expand Down Expand Up @@ -80,13 +75,13 @@ Module: class extends Node {
getUnderName: func -> String { underName }
getPathElement: func -> String { pathElement }
getSourceFolderName: func -> String {
path := File new(pathElement) getAbsoluteFile() name

uze := params sourcePathTable get(pathElement)
if (uze) {
path = "%s/%s" format(uze identifier, path)
if (!uze) {
message := "Module that has no corresponding use! pathElement = %s" format(pathElement)
params errorHandler onError(InternalError new(token, message))
}
path

"ooc/%s" format(uze identifier)
}

getPath: func (suffix := "") -> String {
Expand Down

0 comments on commit dde4229

Please sign in to comment.