Example #1
0
 public XamlMethodCallBaseNode(IXamlLineInfo lineInfo,
                               IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args)
     : base(lineInfo)
 {
     Method    = method;
     Arguments = args?.ToList() ?? new List <IXamlAstValueNode>();
 }
Example #2
0
 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");
     }
 }
Example #3
0
        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());
            }
        }
Example #4
0
 public XamlStaticOrTargetedReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method,
                                                 IEnumerable <IXamlAstValueNode> args)
     : base(lineInfo, method, args)
 {
     Type = new XamlAstClrTypeReference(lineInfo, method.ReturnType, false);
 }
Example #5
0
 public XamlNoReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args)
     : base(lineInfo, method, args)
 {
 }