Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 986223f

Browse files
author
xiaoyu.wu
committed
使能工作在unity 2021.
1 parent b1b5f69 commit 986223f

32 files changed

+73
-27
lines changed

ASCR/compiler/builds/ExpressionBuilder.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,34 @@ memberLeftValue is MethodGetterBase
885885

886886
}
887887
}
888+
889+
else if (step.OpCode == "@*")
890+
{
891+
RightValueBase rv = getRightValue(env, step.Arg2, step.token, builder);
892+
893+
if (rv is PackagePathGetter)
894+
{
895+
throw new BuildException(
896+
new BuildError(step.token.line, step.token.ptr, step.token.sourceFile,
897+
"Package cannot be used as a value: '" + ((PackagePathGetter)rv).path + "'."));
898+
}
899+
900+
//尝试读值
901+
StackSlotAccessor eax = env.createASTRegister(step.Arg1.Reg);
902+
eax.valueType = rv.valueType;
903+
904+
905+
OpStep op = new OpStep(OpCode.assigning, new SourceToken(step.token.line, step.token.ptr, step.token.sourceFile));
906+
op.reg = eax;
907+
op.regType = eax.valueType;
908+
op.arg1 = rv;
909+
op.arg1Type = rv.valueType;
910+
op.arg2 = null;
911+
op.arg2Type = RunTimeDataType.unknown;
912+
913+
env.block.opSteps.Add(op);
914+
915+
}
888916
else
889917
{
890918
throw new BuildException(

ASCR/obj/Debug/ASCompiler.csproj.FileListAbsolute.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ F:\GitHub\apple-juice-actionscript\ASCR\bin\Debug\ASTool.dll
8686
F:\GitHub\apple-juice-actionscript\ASCR\bin\Debug\ASRuntime.pdb
8787
F:\GitHub\apple-juice-actionscript\ASCR\bin\Debug\ASTool.pdb
8888
F:\GitHub\apple-juice-actionscript\ASCR\bin\Debug\ASTool.xml
89-
F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.csprojAssemblyReference.cache
9089
F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.Properties.Resources.resources
9190
F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.csproj.GenerateResource.cache
9291
F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.csproj.CoreCompileInputs.cache
@@ -96,3 +95,4 @@ F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.pdb
9695
E:\ASTool\ASCR\obj\Debug\ASCompiler.csprojAssemblyReference.cache
9796
E:\ASTool\ASCR\obj\Debug\ASCompiler.csproj.CoreCompileInputs.cache
9897
E:\ASTool\ASCR\obj\Debug\ASCompiler.csproj.CopyComplete
98+
F:\GitHub\apple-juice-actionscript\ASCR\obj\Debug\ASCompiler.csproj.AssemblyReference.cache
840 Bytes
Binary file not shown.
-160 Bytes
Binary file not shown.
50 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.5 KB
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)