|
@@ -390,12 +390,12 @@ export const ProcessorErrorFactory = Object.freeze({
|
|
const context = [value, LocalizedStrings.translateType(type, dim)];
|
|
const context = [value, LocalizedStrings.translateType(type, dim)];
|
|
return createRuntimeError("invalid_type_conversion", context);
|
|
return createRuntimeError("invalid_type_conversion", context);
|
|
},
|
|
},
|
|
- invalid_read_type: (exp, type, dim, name) => {
|
|
|
|
- const context = [exp, LocalizedStrings.translateType(type, dim), name];
|
|
|
|
|
|
+ invalid_read_type: (exp, type, dim, name, source_info) => {
|
|
|
|
+ const context = [source_info.line, exp, LocalizedStrings.translateType(type, dim), name];
|
|
return createRuntimeError("invalid_read_type", context)
|
|
return createRuntimeError("invalid_read_type", context)
|
|
},
|
|
},
|
|
- invalid_read_type_array: (exp, typePos, dimPos, name, typeArray, dimArray) => {
|
|
|
|
- const context = [exp, LocalizedStrings.translateType(typePos, dimPos), name,LocalizedStrings.translateType(typeArray, dimArray)];
|
|
|
|
|
|
+ invalid_read_type_array: (exp, typePos, dimPos, name, typeArray, dimArray, sourceInfo) => {
|
|
|
|
+ const context = [sourceInfo.line, exp, LocalizedStrings.translateType(typePos, dimPos), name,LocalizedStrings.translateType(typeArray, dimArray)];
|
|
return createRuntimeError("invalid_read_type_array", context)
|
|
return createRuntimeError("invalid_read_type_array", context)
|
|
},
|
|
},
|
|
invalid_const_ref_full: (fun_name, exp, sourceInfo)=> {
|
|
invalid_const_ref_full: (fun_name, exp, sourceInfo)=> {
|
|
@@ -504,5 +504,9 @@ export const ProcessorErrorFactory = Object.freeze({
|
|
},
|
|
},
|
|
negative_sqrt_value: (source_info) => {
|
|
negative_sqrt_value: (source_info) => {
|
|
return createRuntimeError("negative_sqrt_value",[source_info.line]);
|
|
return createRuntimeError("negative_sqrt_value",[source_info.line]);
|
|
|
|
+ },
|
|
|
|
+ exceeded_recursive_calls: (source_info) => {
|
|
|
|
+ const context = [source_info.line];
|
|
|
|
+ return createRuntimeError("exceeded_recursive_calls", context);
|
|
}
|
|
}
|
|
});
|
|
});
|