示例#1
0
        public UnifiedElement VisitTypeOfExpression(
            TypeOfExpression expr, object data)
        {
            var type = LookupType(expr.Type);

            return(UnifiedTypeof.Create(type));
        }
 //typeof式
 public override bool Visit(UnifiedTypeof element, VisitorArgument arg)
 {
     Writer.Write("typeof (");
     element.Value.TryAccept(this, arg);
     Writer.Write(")");
     return(true);
 }
 public override bool Visit(UnifiedTypeof element, VisitorArgument arg)
 {
     element.Value.TryAccept(this, arg);
     Writer.Write(".class");
     return false;
 }
 //typeof式
 public override bool Visit(UnifiedTypeof element, VisitorArgument arg)
 {
     Writer.Write("typeof (");
     element.Value.TryAccept(this, arg);
     Writer.Write(")");
     return true;
 }
 public override bool Visit(UnifiedTypeof element, VisitorArgument arg)
 {
     element.Value.TryAccept(this, arg);
     Writer.Write(".class");
     return(false);
 }