public override JsExpression VisitSizeOfResolveResult(SizeOfResolveResult rr, object data) {
			if (rr.ConstantValue == null) {
				// This is an internal error because AFAIK, using sizeof() with anything that doesn't return a compile-time constant (with our enum extensions) can only be done in an unsafe context.
				throw new Exception("Cannot take the size of type " + rr.ReferencedType.FullName);
			}
			return MakeConstant(rr);
		}
예제 #2
0
 public override string VisitSizeOfResolveResult(SizeOfResolveResult rr, object data)
 {
     if (rr.ConstantValue == null)
     {
         throw new Exception("Cannot take the size of type " + rr.ReferencedType.FullName);
     }
     return(MakeConstant(rr));
 }
예제 #3
0
 public JsNode VisitSizeOfResolveResult(SizeOfResolveResult res)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public object VisitSizeOfResolveResult(SizeOfResolveResult rr, object data)
 {
     VisitChildResolveResults(rr, data);
     return(null);
 }
 public virtual TResult VisitSizeOfResolveResult(SizeOfResolveResult rr, TData data)
 {
     VisitChildResolveResults(rr, data);
     return(default(TResult));
 }