Преглед на файлове

Fixed Global Expressions not being captureable

Is there any reason why not to?
kindlich преди 5 години
родител
ревизия
b9a8c490d2
No known key found for this signature in database
променени са 1 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 6
    4
      CodeModel/src/main/java/org/openzen/zenscript/codemodel/partial/PartialGlobalExpression.java

+ 6
- 4
CodeModel/src/main/java/org/openzen/zenscript/codemodel/partial/PartialGlobalExpression.java Целия файл

@@ -9,10 +9,7 @@ import java.util.List;
9 9
 import org.openzen.zencode.shared.CodePosition;
10 10
 import org.openzen.zencode.shared.CompileException;
11 11
 import org.openzen.zenscript.codemodel.FunctionHeader;
12
-import org.openzen.zenscript.codemodel.expression.CallArguments;
13
-import org.openzen.zenscript.codemodel.expression.Expression;
14
-import org.openzen.zenscript.codemodel.expression.GlobalCallExpression;
15
-import org.openzen.zenscript.codemodel.expression.GlobalExpression;
12
+import org.openzen.zenscript.codemodel.expression.*;
16 13
 import org.openzen.zenscript.codemodel.scope.TypeScope;
17 14
 import org.openzen.zenscript.codemodel.GenericName;
18 15
 import org.openzen.zenscript.codemodel.type.StoredType;
@@ -63,4 +60,9 @@ public class PartialGlobalExpression implements IPartialExpression {
63 60
 	public StoredType[] getTypeArguments() {
64 61
 		return typeArguments;
65 62
 	}
63
+
64
+	@Override
65
+	public IPartialExpression capture(CodePosition position, LambdaClosure closure) {
66
+		return this;
67
+	}
66 68
 }

Loading…
Отказ
Запис