1
0

COMMON DEF(WIP)

This commit is contained in:
otya128
2016-12-02 21:27:03 +09:00
parent 2ae805d35c
commit ccc9da91e1
4 changed files with 21 additions and 9 deletions

View File

@@ -426,19 +426,22 @@ class DefineFunction : Statement
wstring name;
Statements functionBody;
bool returnExpr;
this(wstring name, bool returnExpr, SourceLocation loc)
bool isCommon;
this(wstring name, bool returnExpr, bool isCommon, SourceLocation loc)
{
super.location = loc;
this.type = NodeType.DefineFunction;
this.name = name;
this.returnExpr = returnExpr;
this.isCommon = isCommon;
}
this(wstring name, SourceLocation loc)
this(wstring name, bool isCommon, SourceLocation loc)
{
super.location = loc;
this.type = NodeType.DefineFunction;
this.name = name;
this.returnExpr = false;
this.isCommon = isCommon;
}
void addArgument(wstring name)
{