55 references to AstFactory
System.Data.SqlXml (55)
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2113
varPar =
AstFactory
.WithParam(name);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (9)
388
modePar = applyTemplatesParams[mn] =
AstFactory
.WithParam(instr.Name);
642
par = applyTemplatesParams[mn] =
AstFactory
.WithParam(node.Name);
1093
private static readonly QilName nullMode =
AstFactory
.QName(string.Empty);
1255
QilName templatename =
AstFactory
.QName("generated", compiler.CreatePhantomNamespace(), "compiler");
1261
var calltemplate =
AstFactory
.CallTemplate(templatename, fakeCtxInfo);
1265
Template newtemplate =
AstFactory
.Template(templatename, null, XsltLoader.nullMode, double.NaN, node.XslVersion);
1291
var paramname =
AstFactory
.QName(variable.Name.LocalName, variable.Name.NamespaceUri, variable.Name.Prefix);
1294
var withparam =
AstFactory
.VarPar(XslNodeType.WithParam, paramname, '$' + paramname.QualifiedName, XslVersion.Current);
1300
var param =
AstFactory
.VarPar(XslNodeType.Param, paramname, null, XslVersion.Current);
System\Xml\Xsl\Xslt\XsltLoader.cs (45)
23
using f =
AstFactory
;
39
internal static QilName nullMode =
f
.QName(string.Empty);
88
compiler.StartApplyTemplates =
f
.ApplyTemplates(nullMode);
280
curTemplate =
f
.Template(/*name:*/null, /*match:*/"/", /*mode:*/nullMode, /*priority:*/double.NaN, input.XslVersion);
732
Key key = (Key)SetInfo(
f
.Key(keyName, match, use, input.XslVersion), null, ctxInfo);
881
set =
f
.AttributeSet(setName);
919
set.AddContent(SetInfo(
f
.List(), LoadEndTag(content), ctxInfo));
972
curTemplate =
f
.Template(name, match, mode, priority, input.XslVersion);
1336
result = SetLineInfo(
f
.Text(input.Value), input.BuildLineInfo());
1406
return SetInfo(
f
.Error(XslLoadException.CreateMessage(contentInfo, /*[XT0260]*/Res.Xslt_NotEmptyContents, atoms.ApplyImports)), null, ctxInfo);
1415
return SetInfo(
f
.ApplyImports(/*Mode:*/curTemplate.Mode, curStylesheet, input.XslVersion), content, ctxInfo);
1434
return SetInfo(
f
.ApplyTemplates(mode, select, ctxInfo, input.XslVersion),
1450
return SetInfo(
f
.CallTemplate(name, ctxInfo), content, ctxInfo);
1478
return SetInfo(
f
.Copy(), LoadEndTag(LoadInstructions(content)), ctxInfo);
1497
return SetInfo(
f
.CopyOf(select, input.XslVersion), null, ctxInfo);
1515
return SetInfo(
f
.If(test, input.XslVersion), LoadInstructions(), ctxInfo);
1570
return SetInfo(
f
.Choose(), content, ctxInfo);
1575
return SetInfo(
f
.Otherwise(), LoadInstructions(), ctxInfo);
1590
return SetInfo(
f
.ForEach(select, ctxInfo, input.XslVersion),
1612
content.Insert(0,
f
.CopyOf(select, input.XslVersion));
1615
return SetInfo(
f
.Message(terminate), content, ctxInfo);
1669
f
.Number(level, count, from, value,
1703
return SetInfo(
f
.Error(XslLoadException.CreateMessage(ctxInfo.lineInfo, Res.Xslt_MissingAttribute, "select")), null, ctxInfo);
1715
return SetInfo(
f
.XslNode(doe ? XslNodeType.ValueOfDoe : XslNodeType.ValueOf, null, select, input.XslVersion),
1797
VarPar result =
f
.VarPar(nodeType, name, select, input.XslVersion);
1812
return SetInfo(
f
.Comment(), LoadContent(select != null), ctxInfo);
1838
return SetInfo(
f
.PI(name, input.XslVersion), LoadContent(select != null), ctxInfo);
1862
content.Add(
f
.Text(input.Value, hints));
1874
return SetInfo(
f
.List(), content, ctxInfo);
1904
return SetInfo(
f
.Element(name, ns, input.XslVersion),
1935
return SetInfo(
f
.Attribute(name, ns, input.XslVersion), LoadContent(select != null), ctxInfo);
1979
return SetInfo(
f
.Sort(select, lang, dataType, order, caseOrder, input.XslVersion),
2319
return SetInfo(
f
.List(), LoadFallbacks(name), ctxInfo);
2332
XslNode att =
f
.LiteralAttribute(
f
.QName(input.LocalName, input.NamespaceUri, input.Prefix), input.Value, input.XslVersion);
2341
return SetInfo(
f
.LiteralElement(
f
.QName(name, nsUri, prefix)), content, ctxInfo);
2365
AddInstruction(content, SetLineInfo(
f
.Nop(), input.BuildLineInfo()));
2379
return SetInfo(
f
.List(), fallbacks, ctxInfo);
2393
fallbacksArray.Add(SetInfo(
f
.List(), LoadInstructions(), ctxInfo));
2403
f
.Error(XslLoadException.CreateMessage(extElmLineInfo, Res.Xslt_UnknownExtensionElement, instrName))
2544
result =
f
.QName(localName, namespaceName, prefix);
2551
result =
f
.QName(compiler.PhantomNCName, compiler.CreatePhantomNamespace(), compiler.PhantomNCName);
2568
return
f
.QName(localName, namespaceName, prefix);
2635
AddInstruction(list, SetLineInfo(
f
.UseAttributeSet(CreateXPathQName(qname)), input.BuildLineInfo()));