public XamlTypeExtensionNode(IXamlLineInfo lineInfo, IXamlAstTypeReference value, IXamlType systemType) : base(lineInfo) { _systemType = systemType; Type = new XamlAstClrTypeReference(this, systemType, false); Value = value; }
public XamlMarkupExtensionNode(IXamlLineInfo lineInfo, IXamlMethod provideValue, IXamlAstValueNode value) : base(lineInfo) { ProvideValue = provideValue; Value = value; Type = new XamlAstClrTypeReference(this, ProvideValue.ReturnType, false); }
public XamlLoadMethodDelegateNode(IXamlLineInfo lineInfo, IXamlAstValueNode value, IXamlType delegateType, IXamlMethod method) : base(lineInfo, value) { DelegateType = delegateType; Method = method; Type = new XamlAstClrTypeReference(value, DelegateType, false); }
public XamlAstNewClrObjectNode(IXamlLineInfo lineInfo, XamlAstClrTypeReference type, IXamlConstructor ctor, List <IXamlAstValueNode> arguments) : base(lineInfo) { Type = type; Constructor = ctor; Arguments = arguments; }
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); }
public XamlAstConstructableObjectNode(IXamlLineInfo lineInfo, XamlAstClrTypeReference type, IXamlConstructor ctor, List <IXamlAstValueNode> arguments, List <IXamlAstNode> children) : base(lineInfo) { Type = type; Constructor = ctor; Arguments = arguments; Children = children; }
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"); } }
public XamlStaticOrTargetedReturnMethodCallNode(IXamlLineInfo lineInfo, IXamlWrappedMethod method, IEnumerable <IXamlAstValueNode> args) : base(lineInfo, method, args) { Type = new XamlAstClrTypeReference(lineInfo, method.ReturnType, false); }
public XamlAstCompilerLocalNode(IXamlLineInfo lineInfo, XamlAstClrTypeReference type) : base(lineInfo) { Type = type.Type; _typeReference = type; }
public XamlAstContextLocalNode(IXamlLineInfo lineInfo, IXamlType type) : base(lineInfo) { Type = new XamlAstClrTypeReference(this, type, false); }
public XamlIntermediateRootObjectNode(IXamlLineInfo lineInfo, XamlTypeWellKnownTypes types) : base(lineInfo) { Type = new XamlAstClrTypeReference(lineInfo, types.Object, false); }
public XamlNullExtensionNode(IXamlLineInfo lineInfo) : base(lineInfo) { Type = new XamlAstClrTypeReference(lineInfo, XamlPseudoType.Null, false); }