Skip to content

Commit

Permalink
removed erroneous dots found in a few error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
roja authored and Amos Wenger committed Jun 24, 2010
1 parent 3ac2d98 commit ab19bc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/rock/middle/FunctionCall.ooc
Expand Up @@ -159,7 +159,7 @@ FunctionCall: class extends Expression {
expr as VariableAccess getRef() resolveCall(this, res, trail)
} else if(expr getType() != null && expr getType() getRef() != null) {
if(!expr getType() getRef() instanceOf(TypeDecl)) {
message := "No such function %s.%s%s (you can't call methods on generic types! you have to cast them to something sane first)" format(expr getType() getName(), name, getArgsTypesRepr())
message := "No such function %s%s for %s (you can't call methods on generic types! you have to cast them to something sane first)" format(name, getArgsTypesRepr(), expr getType() getName())
token throwError(message)
}
tDecl := expr getType() getRef() as TypeDecl
Expand Down Expand Up @@ -217,10 +217,10 @@ FunctionCall: class extends Expression {
message = "No such function %s%s" format(name, getArgsTypesRepr())
} else if(expr getType() != null) {
if(res params veryVerbose) {
message = "No such function %s (%s).%s%s" format(expr getType() getName(),
expr getType() getRef() ? expr getType() getRef() token toString() : "(nil)", name, getArgsTypesRepr())
message = "No such function %s%s for %s (%s)" format(name, getArgsTypesRepr(),
expr getType() getName(), expr getType() getRef() ? expr getType() getRef() token toString() : "(nil)")
} else {
message = "No such function %s.%s%s" format(expr getType() getName(), name, getArgsTypesRepr())
message = "No such function %s%s for %s" format(name, getArgsTypesRepr(), expr getType() getName())
}
}
//printf("name = %s, refScore = %d, ref = %s\n", name, refScore, ref ? ref toString() : "(nil)")
Expand Down
4 changes: 2 additions & 2 deletions source/rock/middle/TypeDecl.ooc
Expand Up @@ -548,10 +548,10 @@ TypeDecl: abstract class extends Declaration {

if(access debugCondition()) {
for(v in variables) {
printf("Got var %s.%s\n", toString(), v toString())
printf("Got var %s %s\n", toString(), v toString())
}
for(f in functions) {
printf("Got function %s.%s\n", toString(), f toString())
printf("Got function %s %s\n", toString(), f toString())
}
}

Expand Down

0 comments on commit ab19bc6

Please sign in to comment.