/// <summary> /// Creates a type assertion like 'x : YourType'. /// </summary> public static IExpression TypeAssertion(ITypeNode type, IUnaryExpression expression) { var result = new TypeAssertion(); result.Type = type; result.Expression = expression; return(result); }
public static void OrThrow(this TypeAssertion assertion, string location, Func <string> func) { assertion.OrThrow(() => withLocation(location, func)); }