public static string Message_LambdaInvoke(string lambdaName, RestrictedCallType type)
 => $"The lambda '{lambdaName}' calls a restricted value of type '{StringFromCallType(type)}'.";
 public static string Message_Macro(string macroName, RestrictedCallType type)
 => $"The macro '{macroName}' calls a restricted value of type '{StringFromCallType(type)}'.";
 public static string Message_FunctionCallsRestricted(string functionName, RestrictedCallType type)
 => $"The function '{functionName}' calls a restricted value of type '{StringFromCallType(type)}'.";
 public static string Message_Element(RestrictedCallType type) => $"A restricted value of type '{StringFromCallType(type)}' cannot be called in this rule.";
Example #5
0
 public RestrictedCall(RestrictedCallType callType, Location callRange, string message)
 {
     CallType  = callType;
     CallRange = callRange;
     Message   = message;
 }
Example #6
0
 public static string Message_UnsetOptionalParameter(string parameterName, string functionName, RestrictedCallType type)
 => $"An unset optional parameter '{parameterName}' in the function '{functionName}' calls a restricted value of type '{RestrictedCall.StringFromCallType(type)}'.";