Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlILCommand.cs
Go to the documentation of this file.
1
using
System.Xml.Xsl.Runtime
;
2
3
namespace
System.Xml.Xsl
;
4
5
internal
sealed
class
XmlILCommand
6
{
7
private
readonly
ExecuteDelegate
_delExec
;
8
9
private
readonly
XmlQueryStaticData
_staticData
;
10
11
public
XmlQueryStaticData
StaticData
=>
_staticData
;
12
13
public
XmlILCommand
(
ExecuteDelegate
delExec
,
XmlQueryStaticData
staticData
)
14
{
15
_delExec
=
delExec
;
16
_staticData
=
staticData
;
17
}
18
19
public
void
Execute
(
object
defaultDocument
,
XmlResolver
dataSources
,
XsltArgumentList
argumentList
,
XmlWriter
writer
)
20
{
21
try
22
{
23
if
(
writer
is
XmlAsyncCheckWriter
)
24
{
25
writer
= ((
XmlAsyncCheckWriter
)
writer
).CoreWriter;
26
}
27
if
(
writer
is
XmlWellFormedWriter
{ RawWriter:
not
null
,
WriteState
:
WriteState.Start
}
xmlWellFormedWriter
&&
xmlWellFormedWriter.Settings.ConformanceLevel
!=
ConformanceLevel
.Document)
28
{
29
Execute
(
defaultDocument
,
dataSources
,
argumentList
,
new
XmlMergeSequenceWriter
(
xmlWellFormedWriter
.RawWriter));
30
}
31
else
32
{
33
Execute
(
defaultDocument
,
dataSources
,
argumentList
,
new
XmlMergeSequenceWriter
(
new
XmlRawWriterWrapper
(
writer
)));
34
}
35
}
36
finally
37
{
38
writer
.Flush();
39
}
40
}
41
42
private
void
Execute
(
object
defaultDocument
,
XmlResolver
dataSources
,
XsltArgumentList
argumentList
,
XmlSequenceWriter
results
)
43
{
44
if
(
dataSources
==
null
)
45
{
46
dataSources
=
XmlNullResolver
.
Singleton
;
47
}
48
_delExec
(
new
XmlQueryRuntime
(
_staticData
,
defaultDocument
,
dataSources
,
argumentList
,
results
));
49
}
50
}
System.Xml.XmlAsyncCheckWriter
Definition
XmlAsyncCheckWriter.cs:7
System.Xml.XmlNullResolver.Singleton
static readonly XmlNullResolver Singleton
Definition
XmlNullResolver.cs:7
System.Xml.XmlNullResolver
Definition
XmlNullResolver.cs:6
System.Xml.XmlResolver
Definition
XmlResolver.cs:8
System.Xml.XmlWellFormedWriter
Definition
XmlWellFormedWriter.cs:11
System.Xml.XmlWriter
Definition
XmlWriter.cs:11
System.Xml.Xsl.Runtime.XmlMergeSequenceWriter
Definition
XmlMergeSequenceWriter.cs:6
System.Xml.Xsl.Runtime.XmlQueryRuntime
Definition
XmlQueryRuntime.cs:16
System.Xml.Xsl.Runtime.XmlQueryStaticData
Definition
XmlQueryStaticData.cs:10
System.Xml.Xsl.Runtime.XmlRawWriterWrapper
Definition
XmlRawWriterWrapper.cs:4
System.Xml.Xsl.Runtime.XmlSequenceWriter
Definition
XmlSequenceWriter.cs:6
System.Xml.Xsl.XmlILCommand._staticData
readonly XmlQueryStaticData _staticData
Definition
XmlILCommand.cs:9
System.Xml.Xsl.XmlILCommand.Execute
void Execute(object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
Definition
XmlILCommand.cs:42
System.Xml.Xsl.XmlILCommand.Execute
void Execute(object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
Definition
XmlILCommand.cs:19
System.Xml.Xsl.XmlILCommand.StaticData
XmlQueryStaticData StaticData
Definition
XmlILCommand.cs:11
System.Xml.Xsl.XmlILCommand._delExec
readonly ExecuteDelegate _delExec
Definition
XmlILCommand.cs:7
System.Xml.Xsl.XmlILCommand.XmlILCommand
XmlILCommand(ExecuteDelegate delExec, XmlQueryStaticData staticData)
Definition
XmlILCommand.cs:13
System.Xml.Xsl.XmlILCommand
Definition
XmlILCommand.cs:6
System.Xml.Xsl.XsltArgumentList
Definition
XsltArgumentList.cs:7
System.Xml.Xsl.Runtime
Definition
AncestorDocOrderIterator.cs:4
System.Xml.Xsl.ExecuteDelegate
delegate void ExecuteDelegate(XmlQueryRuntime runtime)
System.Xml.Xsl
Definition
BranchingContext.cs:1
System.Xml.ConformanceLevel
ConformanceLevel
Definition
ConformanceLevel.cs:4
System.Xml.WriteState
WriteState
Definition
WriteState.cs:4
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.writer
@ writer
System.ConsoleKey.Execute
@ Execute
source
System.Private.Xml
System.Xml.Xsl
XmlILCommand.cs
Generated by
1.10.0