Esempio n. 1
0
 public XamlTypeExtensionNode(IXamlLineInfo lineInfo, IXamlAstTypeReference value,
                              IXamlType systemType) : base(lineInfo)
 {
     _systemType = systemType;
     Type        = new XamlAstClrTypeReference(this, systemType, false);
     Value       = value;
 }
Esempio n. 2
0
 public XamlMarkupExtensionNode(IXamlLineInfo lineInfo, IXamlMethod provideValue,
                                IXamlAstValueNode value) : base(lineInfo)
 {
     ProvideValue = provideValue;
     Value        = value;
     Type         = new XamlAstClrTypeReference(this, ProvideValue.ReturnType, false);
 }
Esempio n. 3
0
 public XamlLoadMethodDelegateNode(IXamlLineInfo lineInfo, IXamlAstValueNode value,
                                   IXamlType delegateType, IXamlMethod method) : base(lineInfo, value)
 {
     DelegateType = delegateType;
     Method       = method;
     Type         = new XamlAstClrTypeReference(value, DelegateType, false);
 }
Esempio n. 4
0
 public XamlAstNewClrObjectNode(IXamlLineInfo lineInfo,
                                XamlAstClrTypeReference type, IXamlConstructor ctor,
                                List <IXamlAstValueNode> arguments) : base(lineInfo)
 {
     Type        = type;
     Constructor = ctor;
     Arguments   = arguments;
 }
Esempio n. 5
0
 public XamlConstantNode(IXamlLineInfo lineInfo, IXamlType type, object constant) : base(lineInfo)
 {
     if (!constant.GetType().IsPrimitive&& constant.GetType() != typeof(string))
     {
         throw new ArgumentException($"Don't know how to emit {constant.GetType()} constant");
     }
     Constant = constant;
     Type     = new XamlAstClrTypeReference(lineInfo, type, false);
 }
Esempio n. 6
0
 public XamlAstConstructableObjectNode(IXamlLineInfo lineInfo,
                                       XamlAstClrTypeReference type, IXamlConstructor ctor,
                                       List <IXamlAstValueNode> arguments,
                                       List <IXamlAstNode> children) : base(lineInfo)
 {
     Type        = type;
     Constructor = ctor;
     Arguments   = arguments;
     Children    = children;
 }
Esempio n. 7
0
 public XamlAstTextNode(IXamlLineInfo lineInfo, string text, IXamlType type = null) : base(lineInfo)
 {
     Text = text;
     if (type != null)
     {
         Type = new XamlAstClrTypeReference(lineInfo, type, false);
     }
     else
     {
         Type = new XamlAstXmlTypeReference(lineInfo, XamlNamespaces.Xaml2006, "String");
     }
 }
Esempio n. 8
0
 public XamlStaticOrTargetedReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method,
                                                 IEnumerable <IXamlAstValueNode> args)
     : base(lineInfo, method, args)
 {
     Type = new XamlAstClrTypeReference(lineInfo, method.ReturnType, false);
 }
Esempio n. 9
0
 public XamlAstCompilerLocalNode(IXamlLineInfo lineInfo, XamlAstClrTypeReference type) : base(lineInfo)
 {
     Type           = type.Type;
     _typeReference = type;
 }
Esempio n. 10
0
 public XamlAstContextLocalNode(IXamlLineInfo lineInfo, IXamlType type) : base(lineInfo)
 {
     Type = new XamlAstClrTypeReference(this, type, false);
 }
Esempio n. 11
0
 public XamlIntermediateRootObjectNode(IXamlLineInfo lineInfo, XamlTypeWellKnownTypes types) : base(lineInfo)
 {
     Type = new XamlAstClrTypeReference(lineInfo, types.Object, false);
 }
Esempio n. 12
0
 public XamlNullExtensionNode(IXamlLineInfo lineInfo) : base(lineInfo)
 {
     Type = new XamlAstClrTypeReference(lineInfo, XamlPseudoType.Null, false);
 }