Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddScript()

void System.Xml.Xsl.XsltOld.Compiler.AddScript ( string source,
ScriptingLanguage lang,
string ns,
string fileName,
int lineNumber )
inlinepackage

Definition at line 608 of file Compiler.cs.

609 {
612 {
614 if (lang == scriptingLanguage)
615 {
616 throw new PlatformNotSupportedException(System.SR.CompilingScriptsNotSupported);
617 }
618 if (hashtable.Contains(ns))
619 {
620 throw XsltException.Create(System.SR.Xslt_ScriptMixedLanguages, ns);
621 }
622 }
623 }
virtual bool Contains(object key)
Definition Hashtable.cs:719
static string Xslt_ScriptMixedLanguages
Definition SR.cs:1932
static string CompilingScriptsNotSupported
Definition SR.cs:2148
Definition SR.cs:7
readonly Hashtable[] _typeDeclsByLang
Definition Compiler.cs:83
static void ValidateExtensionNamespace(string nsUri)
Definition Compiler.cs:625

References System.SR.CompilingScriptsNotSupported, System.Collections.Hashtable.Contains(), System.Xml.Xsl.XsltException.Create(), and System.SR.Xslt_ScriptMixedLanguages.