private HandleError ( JSError errorId ) : void | ||
errorId | JSError | |
return | void |
internal void HandleError(JSError errorId) {
this.HandleError(errorId, null, false);
}
Context::HandleError ( JSError errorId, String message ) : void | |
Context::HandleError ( JSError errorId, String message, bool treatAsError ) : void | |
Context::HandleError ( JSError errorId, bool treatAsError ) : void |
internal void CoerceToBaseType(Type bt, Context errCtx){ Object val = 0; AST pval = ((AST)this.value).PartiallyEvaluate(); if (pval is ConstantWrapper) val = ((ConstantWrapper)pval).Evaluate(); else pval.context.HandleError(JSError.NotConst); try{ this.value = Convert.CoerceT(val, bt); }catch(Exception){ errCtx.HandleError(JSError.TypeMismatch); this.value = Convert.CoerceT(0, bt); } }