54 references to AstFactory
System.Private.Xml (54)
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2532
varPar =
AstFactory
.WithParam(name);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
369
modePar = _applyTemplatesParams[mn] =
AstFactory
.WithParam(instr.Name!);
671
par = _applyTemplatesParams[mn] =
AstFactory
.WithParam(node.Name!);
1413
QilName templatename =
AstFactory
.QName("generated", _compiler!.CreatePhantomNamespace(), "compiler");
1419
var calltemplate =
AstFactory
.CallTemplate(templatename, fakeCtxInfo);
1423
Template newtemplate =
AstFactory
.Template(templatename, null, XsltLoader.nullMode, double.NaN, node.XslVersion);
1452
var paramname =
AstFactory
.QName(variable.Name.LocalName, variable.Name.NamespaceUri, variable.Name.Prefix);
1455
var withparam =
AstFactory
.VarPar(XslNodeType.WithParam, paramname, $"${paramname.QualifiedName}", XslVersion.Current);
1461
var param =
AstFactory
.VarPar(XslNodeType.Param, paramname, null, XslVersion.Current);
System\Xml\Xsl\Xslt\XsltLoader.cs (45)
16
using F = System.Xml.Xsl.Xslt.
AstFactory
;
33
internal static readonly QilName nullMode =
F
.QName(string.Empty);
103
compiler.StartApplyTemplates =
F
.ApplyTemplates(nullMode);
327
_curTemplate =
F
.Template(/*name:*/null, /*match:*/"/", /*mode:*/nullMode, /*priority:*/double.NaN, _input.XslVersion);
892
Key key = (Key)SetInfo(
F
.Key(keyName, match, use, _input.XslVersion), null, ctxInfo);
1072
set =
F
.AttributeSet(setName);
1118
set.AddContent(SetInfo(
F
.List(), LoadEndTag(content), ctxInfo));
1181
_curTemplate =
F
.Template(name, match, mode, priority, _input.XslVersion);
1450
result = SetLineInfo(
F
.Text(_input.Value), _input.BuildLineInfo());
1538
return SetInfo(
F
.Error(XslLoadException.CreateMessage(contentInfo, /*[XT0260]*/SR.Xslt_NotEmptyContents, _atoms.ApplyImports)), null, ctxInfo);
1549
return SetInfo(
F
.ApplyImports(/*Mode:*/_curTemplate!.Mode, _curStylesheet, _input.XslVersion), content, ctxInfo);
1566
return SetInfo(
F
.ApplyTemplates(mode, select, ctxInfo, _input.XslVersion),
1583
return SetInfo(
F
.CallTemplate(name, ctxInfo), content, ctxInfo);
1613
return SetInfo(
F
.Copy(), LoadEndTag(LoadInstructions(content)), ctxInfo);
1633
return SetInfo(
F
.CopyOf(select, _input.XslVersion), null, ctxInfo);
1653
return SetInfo(
F
.If(test, _input.XslVersion), LoadInstructions(), ctxInfo);
1723
return SetInfo(
F
.Choose(), content, ctxInfo);
1729
return SetInfo(
F
.Otherwise(), LoadInstructions(), ctxInfo);
1745
return SetInfo(
F
.ForEach(select, ctxInfo, _input.XslVersion),
1770
content.Insert(0,
F
.CopyOf(select, _input.XslVersion));
1773
return SetInfo(
F
.Message(terminate), content, ctxInfo);
1829
F
.Number(level, count, from, value,
1863
return SetInfo(
F
.Error(XslLoadException.CreateMessage(ctxInfo.lineInfo, SR.Xslt_MissingAttribute, "select")), null, ctxInfo);
1877
return SetInfo(
F
.XslNode(doe ? XslNodeType.ValueOfDoe : XslNodeType.ValueOf, null, select, _input.XslVersion),
1958
VarPar result =
F
.VarPar(nodeType, name, select, _input.XslVersion);
1974
return SetInfo(
F
.Comment(), LoadContent(select != null), ctxInfo);
2003
return SetInfo(
F
.PI(name, _input.XslVersion), LoadContent(select != null), ctxInfo);
2031
content.Add(
F
.Text(_input.Value, hints));
2043
return SetInfo(
F
.List(), content, ctxInfo);
2075
return SetInfo(
F
.Element(name, ns, _input.XslVersion),
2106
return SetInfo(
F
.Attribute(name, ns, _input.XslVersion), LoadContent(select != null), ctxInfo);
2153
return SetInfo(
F
.Sort(select, lang, dataType, order, caseOrder, _input.XslVersion),
2490
return SetInfo(
F
.List(), LoadFallbacks(name), ctxInfo);
2507
XslNode att =
F
.LiteralAttribute(
F
.QName(_input.LocalName, _input.NamespaceUri, _input.Prefix), _input.Value, _input.XslVersion);
2518
return SetInfo(
F
.LiteralElement(
F
.QName(name, nsUri, prefix)), content, ctxInfo);
2549
AddInstruction(content, SetLineInfo(
F
.Nop(), _input.BuildLineInfo()));
2567
return SetInfo(
F
.List(), fallbacks, ctxInfo);
2584
fallbacksArray.Add(SetInfo(
F
.List(), LoadInstructions(), ctxInfo));
2597
F
.Error(XslLoadException.CreateMessage(extElmLineInfo, SR.Xslt_UnknownExtensionElement, instrName))
2784
result =
F
.QName(localName, namespaceName, prefix);
2793
result =
F
.QName(_compiler.PhantomNCName, _compiler.CreatePhantomNamespace(), _compiler.PhantomNCName);
2813
return
F
.QName(localName, namespaceName, prefix);
2896
AddInstruction(list, SetLineInfo(
F
.UseAttributeSet(CreateXPathQName(qname)), _input.BuildLineInfo()));