Exemple #1
0
 protected bool Equals(UseNode other)
 {
     return(string.Equals(Namespace, other.Namespace));
 }
Exemple #2
0
 protected bool Equals(UseNode other)
 {
     return string.Equals(Namespace, other.Namespace);
 }
Exemple #3
0
        /// <summary>
        /// using                                       = "using" namespace NL
        /// </summary>
        private UseNode parseUsing()
        {
            if (!check(LexemType.Use))
                return null;

            var nsp = ensure(parseNamespace, ParserMessages.NamespaceExpected);
            var node = new UseNode {Namespace = nsp.FullSignature};

            return node;
        }
Exemple #4
0
 /// <summary>
 /// Opens a new namespace for current script.
 /// </summary>
 private void declareOpenNamespace(UseNode node)
 {
     if (!Namespaces.ContainsKey(node.Namespace))
         Namespaces.Add(node.Namespace, true);
 }