Misc. (#281)
* Logger * etag cache fix * xml refactor * whitespace * NodePathUtils * Http2
This commit is contained in:
1 parent
44ee6681c5
commit
f3aeb58b38
13 files changed
+104
-75
No files matched your search
@@ -15,7 +15,11 @@ function Init()
|
|||||||
|
|
||||||
m.port = port
|
m.port = port
|
||||||
|
|
||||||
StartLogger(m.top)
|
#if DEBUG
|
||||||
|
StartLogger(m.top, LogLevel.Debug)
|
||||||
|
#else
|
||||||
|
StartLogger(m.top, LogLevel.Info)
|
||||||
|
#end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartLogger(logger as object, logLevel = LogLevel.Info as LogLevel) as void
|
function StartLogger(logger as object, logLevel = LogLevel.Info as LogLevel) as void
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
</interface>
|
</interface>
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/AutoBind.part.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/AutoBind.part.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/MainScene_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/MainScene_bindings.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/MainScene.brs" />
|
<script type="text/brightscript" uri="pkg:/components/MainScene.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/LoadingScreen.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/LoadingScreen.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
|||||||
@@ -73,11 +73,10 @@ class DashManifest
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if xml.Node("AdaptationSet", adaptationSetAttributes)
|
if xml.Node("AdaptationSet", adaptationSetAttributes)
|
||||||
xml.Node("Role", {
|
xml.EmptyNode("Role", {
|
||||||
"schemeIdUri": "urn:mpeg:dash:role:2011"
|
"schemeIdUri": "urn:mpeg:dash:role:2011"
|
||||||
"value": audioSet.acont = "original" ? "main" : "alternate"
|
"value": audioSet.acont = "original" ? "main" : "alternate"
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
for i = 0 to audioStreams.Count() - 1
|
for i = 0 to audioStreams.Count() - 1
|
||||||
stream = audioStreams[i]
|
stream = audioStreams[i]
|
||||||
@@ -100,31 +99,23 @@ class DashManifest
|
|||||||
"bandwidth": stream.bitrate
|
"bandwidth": stream.bitrate
|
||||||
})
|
})
|
||||||
|
|
||||||
xml.Node("AudioChannelConfiguration", {
|
xml.EmptyNode("AudioChannelConfiguration", {
|
||||||
"schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
|
"schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
|
||||||
"value": `${stream.audioChannels}`
|
"value": `${stream.audioChannels}`
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
if xml.Node("BaseURL")
|
xml.TextNode("BaseURL", stream.url)
|
||||||
xml.Text(stream.url)
|
|
||||||
xml.End()
|
if xml.Node("SegmentBase", { "indexRange": stream.index })
|
||||||
end if
|
xml.EmptyNode("Initialization", { "range": stream.init })
|
||||||
|
|
||||||
if xml.Node("SegmentBase", {
|
|
||||||
"indexRange": stream.index
|
|
||||||
})
|
|
||||||
if xml.Node("Initialization", {
|
|
||||||
"range": stream.init
|
|
||||||
})
|
|
||||||
xml.End()
|
|
||||||
end if
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -178,14 +169,9 @@ class DashManifest
|
|||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if xml.Node("SegmentBase", {
|
if xml.Node("SegmentBase", { "indexRange": stream.index })
|
||||||
"indexRange": stream.index
|
xml.EmptyNode("Initialization", { "range": stream.init })
|
||||||
})
|
|
||||||
if xml.Node("Initialization", {
|
|
||||||
"range": stream.init
|
|
||||||
})
|
|
||||||
xml.End()
|
|
||||||
end if
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -249,12 +235,11 @@ class DashManifest
|
|||||||
"mimeType": "image/jpeg"
|
"mimeType": "image/jpeg"
|
||||||
"contentType": "image"
|
"contentType": "image"
|
||||||
})
|
})
|
||||||
xml.Node("SegmentTemplate", {
|
xml.EmptyNode("SegmentTemplate", {
|
||||||
"media": url
|
"media": url
|
||||||
"duration": duration
|
"duration": duration
|
||||||
"startNumber": 0
|
"startNumber": 0
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
if xml.Node("Representation", {
|
if xml.Node("Representation", {
|
||||||
"id": `thumbnails_${id}`
|
"id": `thumbnails_${id}`
|
||||||
@@ -263,11 +248,10 @@ class DashManifest
|
|||||||
"height": storyboardHeightInPixels
|
"height": storyboardHeightInPixels
|
||||||
})
|
})
|
||||||
|
|
||||||
xml.Node("EssentialProperty", {
|
xml.EmptyNode("EssentialProperty", {
|
||||||
"schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile"
|
"schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile"
|
||||||
"value": `${storyboardWidth}x${storyboardHeight}`
|
"value": `${storyboardWidth}x${storyboardHeight}`
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
@@ -399,11 +383,10 @@ class DashManifest
|
|||||||
if videoStream.colorInfo.primaries <> invalid
|
if videoStream.colorInfo.primaries <> invalid
|
||||||
primaries = m.colorInfo.primaries[videoStream.colorInfo.primaries]
|
primaries = m.colorInfo.primaries[videoStream.colorInfo.primaries]
|
||||||
if primaries <> invalid
|
if primaries <> invalid
|
||||||
xml.Node("EssentialProperty", {
|
xml.EmptyNode("EssentialProperty", {
|
||||||
"schemeIdUri": "urn:mpeg:mpegB:cicp:ColourPrimaries"
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:ColourPrimaries"
|
||||||
"value": primaries
|
"value": primaries
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
else
|
else
|
||||||
LogWarn("Unknown colorInfo.primaries:", videoStream.colorInfo.primaries)
|
LogWarn("Unknown colorInfo.primaries:", videoStream.colorInfo.primaries)
|
||||||
end if
|
end if
|
||||||
@@ -412,11 +395,10 @@ class DashManifest
|
|||||||
if videoStream.colorInfo.transferCharacteristics <> invalid
|
if videoStream.colorInfo.transferCharacteristics <> invalid
|
||||||
transferCharacteristics = m.colorInfo.transferCharacteristics[videoStream.colorInfo.transferCharacteristics]
|
transferCharacteristics = m.colorInfo.transferCharacteristics[videoStream.colorInfo.transferCharacteristics]
|
||||||
if transferCharacteristics <> invalid
|
if transferCharacteristics <> invalid
|
||||||
xml.Node("EssentialProperty", {
|
xml.EmptyNode("EssentialProperty", {
|
||||||
"schemeIdUri": "urn:mpeg:mpegB:cicp:TransferCharacteristics"
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:TransferCharacteristics"
|
||||||
"value": transferCharacteristics
|
"value": transferCharacteristics
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
else
|
else
|
||||||
LogWarn("Unknown colorInfo.transferCharacteristics:", videoStream.colorInfo.transferCharacteristics)
|
LogWarn("Unknown colorInfo.transferCharacteristics:", videoStream.colorInfo.transferCharacteristics)
|
||||||
end if
|
end if
|
||||||
@@ -425,11 +407,10 @@ class DashManifest
|
|||||||
if videoStream.colorInfo.matrixCoefficients <> invalid
|
if videoStream.colorInfo.matrixCoefficients <> invalid
|
||||||
matrixCoefficients = m.colorInfo.matrixCoefficients[videoStream.colorInfo.matrixCoefficients]
|
matrixCoefficients = m.colorInfo.matrixCoefficients[videoStream.colorInfo.matrixCoefficients]
|
||||||
if matrixCoefficients <> invalid
|
if matrixCoefficients <> invalid
|
||||||
xml.Node("EssentialProperty", {
|
xml.EmptyNode("EssentialProperty", {
|
||||||
"schemeIdUri": "urn:mpeg:mpegB:cicp:MatrixCoefficients"
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:MatrixCoefficients"
|
||||||
"value": matrixCoefficients
|
"value": matrixCoefficients
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
else
|
else
|
||||||
LogWarn("Unknown colorInfo.matrixCoefficients:", videoStream.colorInfo.matrixCoefficients)
|
LogWarn("Unknown colorInfo.matrixCoefficients:", videoStream.colorInfo.matrixCoefficients)
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ namespace Http
|
|||||||
|
|
||||||
function SetState(newState as Http.HttpConnectionState)
|
function SetState(newState as Http.HttpConnectionState)
|
||||||
if m.state <> newState
|
if m.state <> newState
|
||||||
LogDebug(m, "state change" + Stri(m.state) + " ->" + Stri(newState))
|
LogDebug("state change" + Stri(m.state) + " ->" + Stri(newState))
|
||||||
m.state = newState
|
m.state = newState
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -58,11 +58,11 @@ namespace Http
|
|||||||
m.http_code = errcode
|
m.http_code = errcode
|
||||||
|
|
||||||
buffer = `<html><head><title>${errcode} ${errname}</title></head><body>
|
buffer = `<html><head><title>${errcode} ${errname}</title></head><body>
|
||||||
<h1>${errname}</h1>
|
<h1>${errname}</h1>
|
||||||
${reason}
|
${reason}
|
||||||
<hr>
|
<hr>
|
||||||
${m.GeneratedBy()}
|
${m.GeneratedBy()}
|
||||||
</body></html>`
|
</body></html>`
|
||||||
|
|
||||||
m.SetBodyDataString(buffer)
|
m.SetBodyDataString(buffer)
|
||||||
m.ContentType("text/html")
|
m.ContentType("text/html")
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ namespace Http
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
cacheControl = response.headers["Cache-Control"]
|
||||||
|
if IsString(cacheControl) and cacheControl.instr("no-cache") <> -1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
etag = response.headers["ETag"]
|
etag = response.headers["ETag"]
|
||||||
if not StringUtils.IsNullOrEmpty(etag)
|
if not StringUtils.IsNullOrEmpty(etag)
|
||||||
return false
|
return false
|
||||||
@@ -42,6 +47,11 @@ namespace Http
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
cacheControl = response.headers["Cache-Control"]
|
||||||
|
if IsString(cacheControl) and cacheControl.instr("no-cache") <> -1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
etag = response.headers["ETag"]
|
etag = response.headers["ETag"]
|
||||||
if not StringUtils.IsNullOrEmpty(etag)
|
if not StringUtils.IsNullOrEmpty(etag)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import "pkg:/source/utils/NodePathUtils.bs"
|
||||||
|
|
||||||
' Bind all nodes that registered for auto-binding
|
' Bind all nodes that registered for auto-binding
|
||||||
' Should be called once from a root node
|
' Should be called once from a root node
|
||||||
' Can be called later to rebind nodes that were added after the first call
|
' Can be called later to rebind nodes that were added after the first call
|
||||||
@@ -35,7 +37,7 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
if node.getField(fieldId) <> invalid
|
if node.getField(fieldId) <> invalid
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
reference = FindNodeFromPath(node, bindings.fields[fieldId])
|
reference = NodePathUtils.FindNodeFromPath(node, bindings.fields[fieldId])
|
||||||
if reference <> invalid
|
if reference <> invalid
|
||||||
node[fieldId] = reference
|
node[fieldId] = reference
|
||||||
end if
|
end if
|
||||||
@@ -54,7 +56,7 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
if child.getField(childPropId) <> invalid
|
if child.getField(childPropId) <> invalid
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
reference = FindNodeFromPath(child, childProps[childPropId])
|
reference = NodePathUtils.FindNodeFromPath(child, childProps[childPropId])
|
||||||
if reference <> invalid
|
if reference <> invalid
|
||||||
child[childPropId] = reference
|
child[childPropId] = reference
|
||||||
end if
|
end if
|
||||||
@@ -63,38 +65,6 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function FindNodeFromPath(root as object, path as string) as object
|
|
||||||
node = root
|
|
||||||
|
|
||||||
if path.StartsWith("/")
|
|
||||||
node = node.getScene()
|
|
||||||
path = path.Mid(1)
|
|
||||||
end if
|
|
||||||
|
|
||||||
pathParts = path.Tokenize("/")
|
|
||||||
|
|
||||||
for i = 0 to pathParts.Count() - 1
|
|
||||||
if node = invalid
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
if pathParts[i] = "."
|
|
||||||
continue for
|
|
||||||
end if
|
|
||||||
if pathParts[i] = ".."
|
|
||||||
node = node.getParent()
|
|
||||||
continue for
|
|
||||||
end if
|
|
||||||
node = node.findNode(pathParts[i])
|
|
||||||
end for
|
|
||||||
|
|
||||||
if root.isSameNode(node)
|
|
||||||
' if a node is referencing itself, it's probably a mistake
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
return node
|
|
||||||
end function
|
|
||||||
|
|
||||||
' Create scoped fields (m.fieldName) for all fields in this node
|
' Create scoped fields (m.fieldName) for all fields in this node
|
||||||
' To be called after BindNodeFieldsAndProps
|
' To be called after BindNodeFieldsAndProps
|
||||||
function BindScopeFields(_unused as dynamic)
|
function BindScopeFields(_unused as dynamic)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<AutoBindNode2 id="AutoBindNode2" />
|
<AutoBindNode2 id="AutoBindNode2" />
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<AutoBindNode1 id="AutoBindNode1" reference2=".." />
|
<AutoBindNode1 id="AutoBindNode1" reference2=".." />
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
</component>
|
</component>
|
||||||
<!--//# sourceMappingURL=./AutoBindNode2.xml.map -->
|
<!--//# sourceMappingURL=./AutoBindNode2.xml.map -->
|
||||||
@@ -242,6 +242,11 @@ namespace HttpClient
|
|||||||
return m
|
return m
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function UseHttp2() as HttpRequest
|
||||||
|
m._useHttp2 = true
|
||||||
|
return m
|
||||||
|
end function
|
||||||
|
|
||||||
function Cancellation(cancellation as object) as HttpRequest
|
function Cancellation(cancellation as object) as HttpRequest
|
||||||
m._cancellation = cancellation
|
m._cancellation = cancellation
|
||||||
return m
|
return m
|
||||||
@@ -261,6 +266,10 @@ namespace HttpClient
|
|||||||
command += ` \\\n --compressed`
|
command += ` \\\n --compressed`
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m._useHttp2 = true
|
||||||
|
command += ` \\\n --http2`
|
||||||
|
end if
|
||||||
|
|
||||||
if m._headers <> invalid
|
if m._headers <> invalid
|
||||||
for each key in m._headers
|
for each key in m._headers
|
||||||
command += ` \\\n -H '${key}: ${m._headers[key]}'`
|
command += ` \\\n -H '${key}: ${m._headers[key]}'`
|
||||||
@@ -489,6 +498,11 @@ namespace HttpClient
|
|||||||
urlTransfer.SetCertificatesFile("common:/certs/ca-bundle.crt")
|
urlTransfer.SetCertificatesFile("common:/certs/ca-bundle.crt")
|
||||||
urlTransfer.InitClientCertificates()
|
urlTransfer.InitClientCertificates()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m._useHttp2 = true
|
||||||
|
urlTransfer.SetHttpVersion("http2")
|
||||||
|
end if
|
||||||
|
|
||||||
return urlTransfer
|
return urlTransfer
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,17 @@ class XmlObject
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function TextNode(name as string, text as string, attributes = invalid as object)
|
||||||
|
m.Node(name, attributes)
|
||||||
|
m.Text(text)
|
||||||
|
m.End()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function EmptyNode(name as string, attributes = invalid as object)
|
||||||
|
m.Node(name, attributes)
|
||||||
|
m.End()
|
||||||
|
end function
|
||||||
|
|
||||||
function End()
|
function End()
|
||||||
m.stack.pop()
|
m.stack.pop()
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
namespace NodePathUtils
|
||||||
|
|
||||||
|
function FindNodeFromPath(root as object, path as string) as object
|
||||||
|
node = root
|
||||||
|
|
||||||
|
if path.StartsWith("/")
|
||||||
|
node = node.getScene()
|
||||||
|
path = path.Mid(1)
|
||||||
|
end if
|
||||||
|
|
||||||
|
pathParts = path.Tokenize("/")
|
||||||
|
|
||||||
|
for i = 0 to pathParts.Count() - 1
|
||||||
|
if node = invalid
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
if pathParts[i] = "."
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
if pathParts[i] = ".."
|
||||||
|
node = node.getParent()
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
node = node.findNode(pathParts[i])
|
||||||
|
end for
|
||||||
|
|
||||||
|
if root.isSameNode(node)
|
||||||
|
' if a node is referencing itself, it's probably a mistake
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
return node
|
||||||
|
end function
|
||||||
|
|
||||||
|
end namespace
|
||||||
Reference in new issue
Block a user