Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompileNewArrayExpression()

void System.Linq.Expressions.Interpreter.LightCompiler.CompileNewArrayExpression ( Expression expr)
inlineprivate

Definition at line 1906 of file LightCompiler.cs.

1907 {
1908 NewArrayExpression newArrayExpression = (NewArrayExpression)expr;
1909 foreach (Expression expression in newArrayExpression.Expressions)
1910 {
1912 }
1913 Type elementType = newArrayExpression.Type.GetElementType();
1914 int count = newArrayExpression.Expressions.Count;
1915 if (newArrayExpression.NodeType == ExpressionType.NewArrayInit)
1916 {
1918 }
1919 else if (count == 1)
1920 {
1922 }
1923 else
1924 {
1926 }
1927 }
void EmitNewArrayBounds(Type elementType, int rank)
void EmitNewArrayInit(Type elementType, int elementCount)
void Compile(Expression expr, bool asVoid)

References System.Linq.Expressions.Interpreter.LightCompiler._instructions, System.Linq.Expressions.Interpreter.LightCompiler.Compile(), System.Linq.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.elementType, System.Linq.Expressions.Interpreter.InstructionList.EmitNewArray(), System.Linq.Expressions.Interpreter.InstructionList.EmitNewArrayBounds(), and System.Linq.Expressions.Interpreter.InstructionList.EmitNewArrayInit().

Referenced by System.Linq.Expressions.Interpreter.LightCompiler.CompileNoLabelPush().