예제 #1
0
        S IAstVisitor <T, S> .VisitUsingDeclaration(UsingDeclaration usingDeclaration, T data)
        {
            var handler = UsingDeclarationVisited;

            if (handler != null)
            {
                handler(usingDeclaration, data);
            }
            return(VisitChildren(usingDeclaration, data));
        }
예제 #2
0
        // TODO: extern aliases

        public override IEntity VisitUsingDeclaration(UsingDeclaration usingDeclaration, object data)
        {
            ITypeOrNamespaceReference u = ConvertType(usingDeclaration.Import, true) as ITypeOrNamespaceReference;

            if (u != null)
            {
                usingScope.Usings.Add(u);
            }
            return(null);
        }
예제 #3
0
 void IAstVisitor.VisitUsingDeclaration(UsingDeclaration usingDeclaration)
 {
     Visit(EnterUsingDeclaration, LeaveUsingDeclaration, usingDeclaration);
 }
예제 #4
0
 public virtual S VisitUsingDeclaration(UsingDeclaration usingDeclaration, T data)
 {
     return(VisitChildren(usingDeclaration, data));
 }
 public override void VisitUsingDeclaration(UsingDeclaration usingDeclaration)
 {
     ForceSpacesAfter(usingDeclaration.UsingToken, true);
     FixSemicolon(usingDeclaration.SemicolonToken);
 }
예제 #6
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            UsingDeclaration o = other as UsingDeclaration;

            return(o != null && this.Import.DoMatch(o.Import, match));
        }
 public virtual S VisitUsingDeclaration(UsingDeclaration usingDeclaration, T data)
 {
     throw new NotImplementedException();
 }