|
@@ -27,7 +27,7 @@ class FunctionNode extends CodeNode {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- getType( /*builder*/ ) {
|
|
|
|
|
|
+ getNodeType( builder ) {
|
|
|
|
|
|
if ( this.needsUpdate === true ) {
|
|
if ( this.needsUpdate === true ) {
|
|
|
|
|
|
@@ -35,7 +35,7 @@ class FunctionNode extends CodeNode {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- return this.type;
|
|
|
|
|
|
+ return super.getNodeType( builder );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -120,7 +120,7 @@ class FunctionNode extends CodeNode {
|
|
const blockCode = mainCode.substring( declaration[ 0 ].length );
|
|
const blockCode = mainCode.substring( declaration[ 0 ].length );
|
|
|
|
|
|
this.name = declaration[ 3 ] !== undefined ? declaration[ 3 ] : '';
|
|
this.name = declaration[ 3 ] !== undefined ? declaration[ 3 ] : '';
|
|
- this.type = declaration[ 2 ];
|
|
|
|
|
|
+ this.nodeType = declaration[ 2 ];
|
|
|
|
|
|
this.presicion = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
|
|
this.presicion = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
|
|
|
|
|
|
@@ -151,7 +151,7 @@ class FunctionNode extends CodeNode {
|
|
|
|
|
|
super.generate( builder );
|
|
super.generate( builder );
|
|
|
|
|
|
- const type = this.getType( builder );
|
|
|
|
|
|
+ const type = this.getNodeType( builder );
|
|
const nodeCode = builder.getCodeFromNode( this, type );
|
|
const nodeCode = builder.getCodeFromNode( this, type );
|
|
|
|
|
|
if ( this.name !== '' ) {
|
|
if ( this.name !== '' ) {
|