3 instantiations of XmlType
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (2)
432
baseType = GetTypeName(new
XmlType
(root.NamespaceURI, root.LocalName, typeArguments != null ? TypeArgumentsParser.ParseExpression(typeArguments, nsmgr, null) : null), compilation, xmlnsCache, typeCache);
480
var xmlType = new
XmlType
(node.NamespaceURI, node.LocalName,
src\Controls\src\Xaml\TypeArgumentsParser.cs (1)
85
return new
XmlType
(namespaceuri, name, typeArguments);
24 references to XmlType
Microsoft.Maui.Controls.SourceGen (24)
CodeBehindGenerator.cs (9)
242
static IDictionary<
XmlType
, string> GetTypeCache(Compilation compilation, CancellationToken cancellationToken)
244
return new Dictionary<
XmlType
, string>();
247
static void GenerateXamlCodeBehind(XamlProjectItem? xamlItem, Compilation compilation, SourceProductionContext context, AssemblyCaches xmlnsCache, IDictionary<
XmlType
, string> typeCache)
380
static bool TryParseXaml(XamlProjectItem parseResult, string uid, Compilation compilation, AssemblyCaches xmlnsCache, IDictionary<
XmlType
, string> typeCache, CancellationToken cancellationToken, out string? accessModifier, out string? rootType, out string? rootClrNamespace, out bool generateDefaultCtor, out bool addXamlCompilationAttribute, out bool hideFromIntellisense, out bool xamlResourceIdOnly, out string? baseType, out IEnumerable<(string, string, string)>? namedFields)
460
static IEnumerable<(string name, string type, string accessModifier)> GetNamedFields(XmlNode root, XmlNamespaceManager nsmgr, Compilation compilation, AssemblyCaches xmlnsCache, IDictionary<
XmlType
, string> typeCache, CancellationToken cancellationToken)
480
var
xmlType = new XmlType(node.NamespaceURI, node.LocalName,
495
static string GetTypeName(
XmlType
xmlType, Compilation compilation, AssemblyCaches xmlnsCache, IDictionary<
XmlType
, string> typeCache)
540
static string GetTypeNameFromCustomNamespace(
XmlType
xmlType, Compilation compilation, AssemblyCaches xmlnsCache)
src\Controls\src\Xaml\TypeArgumentsParser.cs (6)
10
public static IList<
XmlType
> ParseExpression(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo)
12
var typeList = new List<
XmlType
>();
21
public static
XmlType
ParseSingle(string expression, IXmlNamespaceResolver resolver, IXmlLineInfo lineInfo)
24
XmlType
type = Parse(expression, ref remaining, resolver, lineInfo);
33
static
XmlType
Parse(string match, ref string remaining, IXmlNamespaceResolver resolver, IXmlLineInfo lineinfo)
57
IList<
XmlType
> typeArguments = null;
src\Controls\src\Xaml\XamlLoader.Types.cs (1)
37
public RuntimeRootNode(
XmlType
xmlType, object root, IXmlNamespaceResolver resolver) : base(xmlType, resolver)
src\Controls\src\Xaml\XamlNode.cs (7)
30
XmlType
XmlType { get; }
47
public XmlType(string namespaceUri, string name, IList<
XmlType
> typeArguments)
56
public IList<
XmlType
> TypeArguments { get; }
60
if (obj is not
XmlType
other)
157
public ElementNode(
XmlType
type, string namespaceURI, IXmlNamespaceResolver namespaceResolver, int linenumber = -1,
171
public
XmlType
XmlType { get; }
228
protected RootNode(
XmlType
xmlType, IXmlNamespaceResolver nsResolver, int linenumber = -1, int lineposition = -1) : base(xmlType, xmlType.NamespaceUri, nsResolver, linenumber: linenumber, lineposition: lineposition)
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (1)
37
this
XmlType
xmlType,