A namespace that functions operate within
Inheritance: IComparable
示例#1
0
 /// <summary>
 /// Gets an ID for a namespace, ensuring that all other dependencies of the namespace
 /// are themselves registered with IDs.
 /// </summary>
 /// <param name="ns">The namespace</param>
 /// <returns>The ID of the namespace</returns>
 private int NamespaceID(Namespace ns)
 {
     this.stringMarshal.Register(ns.Name);
     return this.nsMarshal.GetIDFor(ns);
 }
示例#2
0
 static Namespace()
 {
     Namespace.GlobalNS = new Namespace(NamespaceKind.Ns, "*");
 }
示例#3
0
 internal void SetNamespaces(Namespace[] namespaces)
 {
     this.nsConsts = new List<Namespace>();
     this.nsConsts.Add(Namespace.GlobalNS);
     this.nsConsts.AddRange(namespaces);
 }
示例#4
0
 internal NamespaceSet CreateNamespaceSet(Namespace[] nsRefs)
 {
     NamespaceSet set = new NamespaceSet(nsRefs);
     this.nsSetConsts.Add(set);
     return set;
 }
示例#5
0
 internal Namespace CreateNamespace(Namespace.NamespaceKind kind, string name, string prefix = null)
 {
     Namespace ns = new Namespace(kind, name, prefix);
     this.nsConsts.Add(ns);
     return ns;
 }
示例#6
0
 internal Multiname CreateMultiname(Multiname.MultinameKind kind, string name, Namespace ns, NamespaceSet set)
 {
     Multiname mn = new Multiname(kind, name, ns, set);
     this.multinameConsts.Add(mn);
     return mn;
 }
示例#7
0
 internal void AddNamespace(Namespace ns)
 {
     this.nsConsts.Add(ns);
 }