public override bool Visit(
            UnifiedConstructor element, VisitorArgument arg)
        {
            element.Modifiers.TryAccept(this, arg);
            element.GenericParameters.TryAccept(this, arg);
            var p = element.Ancestors <UnifiedClassLikeDefinition>().First();

            p.Name.Accept(this, arg);
            element.Parameters.TryAccept(this, arg);
            element.Throws.TryAccept(this, arg);
            element.Body.TryAccept(this, arg.Set(ForBlock));
            return(false);
        }
Exemple #2
0
        public UnifiedElement VisitConstructorDeclaration(
            ConstructorDeclaration ctorDec, object data)
        {
            var mods       = LookupModifiers(ctorDec.Modifiers);
            var attrs      = ctorDec.Attributes.AcceptVisitorAsAttrs(this, data);
            var body       = ctorDec.Body.AcceptVisitor(this, data) as UnifiedBlock;
            var parameters = ctorDec.Parameters.AcceptVisitorAsParams(
                this, data);

            return(UnifiedConstructor.Create(
                       body, attrs, mods, parameters, /*no-generic*/ null,
                       /*thorws*/ null));
        }
 public override bool Visit(
         UnifiedConstructor element, VisitorArgument arg)
 {
     element.Modifiers.TryAccept(this, arg);
     element.GenericParameters.TryAccept(this, arg);
     var p = element.Ancestors<UnifiedClassLikeDefinition>().First();
     p.Name.Accept(this, arg);
     element.Parameters.TryAccept(this, arg);
     element.Throws.TryAccept(this, arg);
     element.Body.TryAccept(this, arg.Set(ForBlock));
     return false;
 }
 //コンストラクタ : JavaScriptでは出現しない
 public override bool Visit(
         UnifiedConstructor element, VisitorArgument arg)
 {
     return false;
 }
Exemple #5
0
 //コンストラクタ : JavaScriptでは出現しない
 public override bool Visit(
     UnifiedConstructor element, VisitorArgument arg)
 {
     return(false);
 }