Removed debug print
This commit is contained in:
parent
0fdddbfda4
commit
a370961218
|
@ -1331,7 +1331,6 @@ proc checkCallIsPure(self: Compiler, node: ASTnode): bool =
|
||||||
|
|
||||||
proc callExpr(self: Compiler, node: CallExpr): Name {.discardable.} =
|
proc callExpr(self: Compiler, node: CallExpr): Name {.discardable.} =
|
||||||
## Compiles code to call a function
|
## Compiles code to call a function
|
||||||
echo node
|
|
||||||
var args: seq[tuple[name: string, kind: Type]] = @[]
|
var args: seq[tuple[name: string, kind: Type]] = @[]
|
||||||
var argExpr: seq[Expression] = @[]
|
var argExpr: seq[Expression] = @[]
|
||||||
var kind: Type
|
var kind: Type
|
||||||
|
@ -1339,7 +1338,6 @@ proc callExpr(self: Compiler, node: CallExpr): Name {.discardable.} =
|
||||||
# TODO: Keyword arguments
|
# TODO: Keyword arguments
|
||||||
for i, argument in node.arguments.positionals:
|
for i, argument in node.arguments.positionals:
|
||||||
kind = self.inferType(argument)
|
kind = self.inferType(argument)
|
||||||
echo argument
|
|
||||||
if kind.isNil():
|
if kind.isNil():
|
||||||
if argument.kind == identExpr:
|
if argument.kind == identExpr:
|
||||||
self.error(&"reference to undeclared name '{IdentExpr(argument).name.lexeme}'")
|
self.error(&"reference to undeclared name '{IdentExpr(argument).name.lexeme}'")
|
||||||
|
|
Loading…
Reference in New Issue