示例#1
0
 public override bool Visit(
     UnifiedAnnotation element, VisitorArgument arg)
 {
     Writer.Write("@");
     element.Name.TryAccept(this, arg);
     element.Arguments.TryAccept(this, arg.Set(Paren));
     Writer.WriteLine();
     return(false);
 }
示例#2
0
        public UnifiedElement VisitAttribute(Attribute attribute, object data)
        {
            var type = LookupType(attribute.Type);

            if (attribute.HasArgumentList == false)
            {
                return(UnifiedAnnotation.Create(type));
            }
            var uArgs = attribute.Arguments.AcceptVisitorAsArgs(this, data);

            return(UnifiedAnnotation.Create(type, uArgs));
        }
 public override bool Visit(
         UnifiedAnnotation element, VisitorArgument arg)
 {
     Writer.Write("@");
     element.Name.TryAccept(this, arg);
     element.Arguments.TryAccept(this, arg.Set(Paren));
     Writer.WriteLine();
     return false;
 }
 //JavaScriptではアノテーションは出現しない
 public override bool Visit(
     UnifiedAnnotation element, VisitorArgument arg)
 {
     return(false);
 }
 //JavaScriptではアノテーションは出現しない
 public override bool Visit(
         UnifiedAnnotation element, VisitorArgument arg)
 {
     return false;
 }