public static Method[] Copy(this IReadOnlyList <Method> candidates, CopyState state) { var result = new Method[candidates.Count]; for (int i = 0; i < candidates.Count; i++) { result[i] = state.GetMember(candidates[i]); } return(result); }
public static Field[] Copy(this Field[] fields, CopyState state) { var result = new Field[fields.Length]; for (int i = 0; i < fields.Length; i++) { result[i] = state.GetMember(fields[i]); } return(result); }
public override Expression CopyExpression(CopyState state) { return(new GetProperty(Source, Object.CopyNullable(state), state.GetMember(Property), Arguments.Copy(state))); }
public override Expression CopyExpression(CopyState state) { return(new CapturedArgument(Source, state.GetMember(Function), ParameterIndex)); }
public override Expression CopyExpression(CopyState state) { return(new LoadField(Source, Object.CopyNullable(state), state.GetMember(Field))); }
public override Expression CopyExpression(CopyState state) { return(new AddListener(Source, Object.CopyNullable(state), state.GetMember(Event), Listener.CopyExpression(state))); }
public override Expression CopyExpression(CopyState state) { return(new NewDelegate(Source, state.GetType(DelegateType), Object?.CopyExpression(state), state.GetMember(Method))); }
public override Expression CopyExpression(CopyState state) { return(new CallShader(Source, state.GetMember(Function), Arguments.Copy(state))); }
public override Expression CopyExpression(CopyState state) { return(new CallMethod(Source, Object.CopyNullable(state), state.GetMember(Method), Arguments.Copy(state))); }
public override Expression CopyExpression(CopyState state) { return(new CallUnOp(Source, state.GetMember(Operator), Operand.CopyExpression(state))); }
public override Expression CopyExpression(CopyState state) { return(new Swizzle(Source, state.GetMember(Constructor), Object.CopyExpression(state), Fields.Copy(state))); }
public override Expression CopyExpression(CopyState state) { return(new CallBinOp(Source, state.GetMember(Operator), Left.CopyExpression(state), Right.CopyExpression(state))); }
public override Expression CopyExpression(CopyState state) { return(new CallConstructor(Source, state.GetMember(Constructor), Arguments.Copy(state))); }
public override Expression CopyExpression(CopyState state) { return(new CapturedLocal(Source, state.GetMember(Function), state.GetVariable(Variable, true))); }
public override Expression CopyExpression(CopyState state) { return(new CallCast(Source, state.GetMember(Cast), Operand.CopyExpression(state))); }