Пример #1
0
 public override void TraverseChildren(IGlobalFieldDefinition globalField)
 {
     if (!MemberHelper.IsVisibleOutsideAssembly(globalField))
     {
         return;
     }
     _assembly.EnrollApi(globalField);
 }
 public override void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     if (Process(globalFieldDefinition))
     {
         visitor.Visit(globalFieldDefinition);
     }
     base.Visit(globalFieldDefinition);
 }
Пример #3
0
 /// <summary>
 /// Traverses the children of the global field definition.
 /// </summary>
 public virtual void TraverseChildren(IGlobalFieldDefinition globalFieldDefinition)
 {
     Contract.Requires(globalFieldDefinition != null);
       this.TraverseChildren((IFieldDefinition)globalFieldDefinition);
 }
Пример #4
0
 /// <summary>
 /// Traverses the global field definition.
 /// </summary>
 public void Traverse(IGlobalFieldDefinition globalFieldDefinition)
 {
     Contract.Requires(globalFieldDefinition != null);
       if (this.preorderVisitor != null) this.preorderVisitor.Visit(globalFieldDefinition);
       if (this.stopTraversal) return;
       this.TraverseChildren(globalFieldDefinition);
       if (this.stopTraversal) return;
       if (this.postorderVisitor != null) this.postorderVisitor.Visit(globalFieldDefinition);
 }
Пример #5
0
 /// <summary>
 /// Performs some computation with the given global field definition.
 /// </summary>
 public virtual void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
 }
Пример #6
0
 public override void TraverseChildren(IGlobalFieldDefinition globalField)
 {
     if (!MemberHelper.IsVisibleOutsideAssembly(globalField))
         return;
     _assembly.EnrollApi(globalField);
 }
 public override void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     if(Process(globalFieldDefinition)){visitor.Visit(globalFieldDefinition);}
     base.Visit(globalFieldDefinition);
 }
Пример #8
0
 public virtual void onMetadataElement(IGlobalFieldDefinition globalFieldDefinition) { }
Пример #9
0
 /// <summary>
 /// Performs some computation with the given global field definition.
 /// </summary>
 public void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     this.Visit((IFieldDefinition)globalFieldDefinition);
     switch (globalFieldDefinition.Visibility) {
       case TypeMemberVisibility.Public:
       case TypeMemberVisibility.Private:
       case TypeMemberVisibility.Other:
     break;
       default:
     this.ReportError(MetadataError.InvalidGlobalFieldVisibility, globalFieldDefinition);
     break;
     }
     if (!globalFieldDefinition.IsStatic)
       this.ReportError(MetadataError.GlobalFieldNotStatic, globalFieldDefinition);
 }
Пример #10
0
 /// <summary>
 /// Performs some computation with the given global field definition.
 /// </summary>
 /// <param name="globalFieldDefinition"></param>
 public virtual void Visit(IGlobalFieldDefinition globalFieldDefinition)
   //^ ensures this.path.Count == old(this.path.Count);
 {
   this.Visit((IFieldDefinition)globalFieldDefinition);
 }
 /// <summary>
 /// Performs some computation with the given global field definition.
 /// </summary>
 public virtual void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
 }
 /// <summary>
 /// Rewrites the specified global field definition.
 /// </summary>
 public virtual IGlobalFieldDefinition Rewrite(IGlobalFieldDefinition globalFieldDefinition)
 {
     return globalFieldDefinition;
 }
Пример #13
0
 public override void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     allElements.Add(new InvokInfo(Traverser, "IGlobalFieldDefinition", globalFieldDefinition));
 }
Пример #14
0
 public void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     this.traverser.Traverse(globalFieldDefinition);
 }
Пример #15
0
 public virtual void onMetadataElement(IGlobalFieldDefinition globalFieldDefinition)
 {
 }
Пример #16
0
 /// <summary>
 /// Performs some computation with the given global field definition.
 /// </summary>
 public virtual void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     this.Visit((IFieldDefinition)globalFieldDefinition);
 }
Пример #17
0
        public override void TraverseChildren(IGlobalFieldDefinition globalFieldDefinition)
{ MethodEnter(globalFieldDefinition);
            base.TraverseChildren(globalFieldDefinition);
     MethodExit();   }
Пример #18
0
 public virtual void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     this.Visit((IFieldDefinition)globalFieldDefinition);
 }
Пример #19
0
 public void Visit(IGlobalFieldDefinition globalFieldDefinition)
 {
     throw new NotImplementedException();
 }
Пример #20
0
 public override void TraverseChildren(IGlobalFieldDefinition globalFieldDefinition)
 {
     MethodEnter(globalFieldDefinition);
     base.TraverseChildren(globalFieldDefinition);
     MethodExit();
 }
Пример #21
0
 /// <summary>
 /// Traverses the children of the global field definition.
 /// </summary>
 public virtual void TraverseChildren(IGlobalFieldDefinition globalFieldDefinition)
 {
     this.TraverseChildren((IFieldDefinition)globalFieldDefinition);
 }