public override void Visit(INestedAliasForType nestedAliasForType)
 {
     if (Process(nestedAliasForType))
     {
         visitor.Visit(nestedAliasForType);
     }
     base.Visit(nestedAliasForType);
 }
Example #2
0
        private static INamespaceAliasForType GetAliasForType(IAliasForType aliasForType)
        {
            INestedAliasForType nestedAliasForType = aliasForType as INestedAliasForType;

            while (nestedAliasForType != null)
            {
                aliasForType       = nestedAliasForType.ContainingAlias;
                nestedAliasForType = aliasForType as INestedAliasForType;
            }
            INamespaceAliasForType namespaceAliasForType = aliasForType as INamespaceAliasForType;

            return(namespaceAliasForType);
        }
Example #3
0
 public void Visit(INestedAliasForType nestedAliasForType)
 {
     this.traverser.Traverse(nestedAliasForType);
 }
Example #4
0
 /// <summary>
 /// Traverses the children of the nested alias for type.
 /// </summary>
 public virtual void TraverseChildren(INestedAliasForType nestedAliasForType)
 {
     Contract.Requires(nestedAliasForType != null);
       this.TraverseChildren((IAliasForType)nestedAliasForType);
 }
Example #5
0
 /// <summary>
 /// Traverses the nested alias for type.
 /// </summary>
 public void Traverse(INestedAliasForType nestedAliasForType)
 {
     Contract.Requires(nestedAliasForType != null);
       if (this.preorderVisitor != null) this.preorderVisitor.Visit(nestedAliasForType);
       if (this.stopTraversal) return;
       this.TraverseChildren(nestedAliasForType);
       if (this.stopTraversal) return;
       if (this.postorderVisitor != null) this.postorderVisitor.Visit(nestedAliasForType);
 }
Example #6
0
 /// <summary>
 /// Performs some computation with the given alias to a nested type definition.
 /// </summary>
 public virtual void VisitReference(INestedAliasForType nestedAliasForType)
 {
 }
 public override void Visit(INestedAliasForType nestedAliasForType)
 {
     if(Process(nestedAliasForType)){visitor.Visit(nestedAliasForType);}
     base.Visit(nestedAliasForType);
 }
 public virtual void onMetadataElement(INestedAliasForType nestedAliasForType) { }
Example #9
0
 /// <summary>
 /// Performs some computation with the given alias to a nested type definition.
 /// </summary>
 public void Visit(INestedAliasForType nestedAliasForType)
 {
     this.Visit((IAliasForType)nestedAliasForType);
     if (nestedAliasForType.Visibility != TypeMemberVisibility.Public && !(TypeHelper.GetDefiningUnitReference(nestedAliasForType.AliasedType) is IAssemblyReference))
       this.ReportError(MetadataError.NonPublicTypeAlias, nestedAliasForType);
     if (nestedAliasForType.ContainingAlias is Dummy) {
       this.ReportError(MetadataError.IncompleteNode, nestedAliasForType, "ContainingAlias");
     } else if (!IteratorHelper.EnumerableContains(this.validator.currentModule.ContainingAssembly.ExportedTypes, nestedAliasForType.ContainingAlias))
       this.ReportError(MetadataError.ContainingAliasNotListedInExportedTypes, nestedAliasForType.ContainingAlias, this.validator.currentModule.ContainingAssembly);
 }
Example #10
0
 public virtual void onMetadataElement(INestedAliasForType nestedAliasForType)
 {
 }
 /// <summary>
 /// Performs some computation with the given alias to a nested type definition.
 /// </summary>
 public virtual void Visit(INestedAliasForType nestedAliasForType)
 {
 }
 /// <summary>
 /// Rewrites the nested alias for type
 /// </summary>
 public virtual INestedAliasForType Rewrite(INestedAliasForType nestedAliasForType)
 {
     return nestedAliasForType;
 }
Example #13
0
 public override void Visit(INestedAliasForType nestedAliasForType)
 {
     allElements.Add(new InvokInfo(Traverser, "INestedAliasForType", nestedAliasForType));
 }
Example #14
0
 /// <summary>
 /// Performs some computation with the given alias to a nested type definition.
 /// </summary>
 public virtual void Visit(INestedAliasForType nestedAliasForType)
 {
     this.Visit((IAliasForType)nestedAliasForType);
 }
        public override void TraverseChildren(INestedAliasForType nestedAliasForType)
{ MethodEnter(nestedAliasForType);
            base.TraverseChildren(nestedAliasForType);
     MethodExit();   }
Example #16
0
 /// <summary>
 /// Performs some computation with the given alias to a nested type definition.
 /// </summary>
 /// <param name="nestedAliasForType"></param>
 public virtual void Visit(INestedAliasForType nestedAliasForType)
 {
 }
Example #17
0
 public void Visit(INestedAliasForType nestedAliasForType)
 {
     throw new NotImplementedException();
 }
 public override void Visit(INestedAliasForType nestedAliasForType)
 {
     AddTypeForwarder(nestedAliasForType.ContainingAlias);
     base.Visit(nestedAliasForType);
 }
Example #19
0
 public override void Visit(INestedAliasForType nestedAliasForType)
 {
     AddTypeForwarder(nestedAliasForType.ContainingAlias);
     base.Visit(nestedAliasForType);
 }
Example #20
0
 public override void TraverseChildren(INestedAliasForType nestedAliasForType)
 {
     MethodEnter(nestedAliasForType);
     base.TraverseChildren(nestedAliasForType);
     MethodExit();
 }
Example #21
0
 /// <summary>
 /// Traverses the children of the nested alias for type.
 /// </summary>
 public virtual void TraverseChildren(INestedAliasForType nestedAliasForType)
 {
     this.TraverseChildren((IAliasForType)nestedAliasForType);
 }