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); }
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)); }
public JsNode VisitSizeOfResolveResult(SizeOfResolveResult res) { throw new NotImplementedException(); }
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)); }