public XamlMethodCallBaseNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args) : base(lineInfo) { Method = method; Arguments = args?.ToList() ?? new List <IXamlAstValueNode>(); }
public XamlWrappedMethodWithCasts(IXamlWrappedMethod method, IEnumerable <IXamlType> newArgumentTypes) { _method = method; ParametersWithThis = newArgumentTypes.ToList(); if (_method.ParametersWithThis.Count != ParametersWithThis.Count) { throw new ArgumentException("Method argument count mismatch"); } }
public void Emit(IXamlWrappedMethod wrapped, TBackendEmitter codeGen, bool swallowResult) { bool foundEmitter = EmitCore(wrapped, codeGen, swallowResult); if (!foundEmitter) { throw new InvalidOperationException("Unable to find emitter for wrapped method type: " + wrapped.GetType().ToString()); } }
public XamlStaticOrTargetedReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args) : base(lineInfo, method, args) { Type = new XamlAstClrTypeReference(lineInfo, method.ReturnType, false); }
public XamlNoReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args) : base(lineInfo, method, args) { }