Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DocumentScope.cs
Go to the documentation of this file.
1
namespace
System.Xml.Xsl.XsltOld
;
2
3
internal
class
DocumentScope
4
{
5
protected
NamespaceDecl
scopes
;
6
7
internal
NamespaceDecl
Scopes
=>
scopes
;
8
9
internal
NamespaceDecl
AddNamespace
(
string
prefix
,
string
uri,
string
prevDefaultNsUri
)
10
{
11
scopes
=
new
NamespaceDecl
(
prefix
, uri,
prevDefaultNsUri
,
scopes
);
12
return
scopes
;
13
}
14
15
internal
string
ResolveAtom
(
string
prefix
)
16
{
17
for
(
NamespaceDecl
next =
scopes
; next !=
null
; next = next.
Next
)
18
{
19
if
(
Ref
.
Equal
(next.Prefix,
prefix
))
20
{
21
return
next.Uri;
22
}
23
}
24
return
null
;
25
}
26
27
internal
string
ResolveNonAtom
(
string
prefix
)
28
{
29
for
(
NamespaceDecl
next =
scopes
; next !=
null
; next = next.
Next
)
30
{
31
if
(next.Prefix ==
prefix
)
32
{
33
return
next.Uri;
34
}
35
}
36
return
null
;
37
}
38
}
System.Xml.Ref.Equal
static bool Equal(string strA, string strB)
Definition
Ref.cs:5
System.Xml.Ref
Definition
Ref.cs:4
System.Xml.Xsl.XsltOld.DocumentScope.ResolveNonAtom
string ResolveNonAtom(string prefix)
Definition
DocumentScope.cs:27
System.Xml.Xsl.XsltOld.DocumentScope.scopes
NamespaceDecl scopes
Definition
DocumentScope.cs:5
System.Xml.Xsl.XsltOld.DocumentScope.ResolveAtom
string ResolveAtom(string prefix)
Definition
DocumentScope.cs:15
System.Xml.Xsl.XsltOld.DocumentScope.AddNamespace
NamespaceDecl AddNamespace(string prefix, string uri, string prevDefaultNsUri)
Definition
DocumentScope.cs:9
System.Xml.Xsl.XsltOld.DocumentScope.Scopes
NamespaceDecl Scopes
Definition
DocumentScope.cs:7
System.Xml.Xsl.XsltOld.DocumentScope
Definition
DocumentScope.cs:4
System.Xml.Xsl.XsltOld.NamespaceDecl.Next
NamespaceDecl Next
Definition
NamespaceDecl.cs:21
System.Xml.Xsl.XsltOld.NamespaceDecl
Definition
NamespaceDecl.cs:6
System.Xml.Xsl.XsltOld
Definition
IXsltDebugger.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.prefix
@ prefix
source
System.Private.Xml
System.Xml.Xsl.XsltOld
DocumentScope.cs
Generated by
1.10.0