fix(compiler): Report references to non-exported symbols.

Includes fixes to places now reported as errors.

Part of #8310
This commit is contained in:
Chuck Jazdzewski
2016-08-02 14:38:31 -07:00
parent 6195a45ae2
commit 9925aa89dc
6 changed files with 57 additions and 5 deletions

View File

@ -594,6 +594,10 @@ function expandedMessage(error: any): string {
error.context && error.context.name ? `Calling function '${error.context.name}', f` : 'F';
return prefix +
'unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function';
case 'Reference to a local symbol':
if (error.context && error.context.name) {
return `Reference to a local (non-exported) symbol '${error.context.name}'. Consider exporting the symbol`;
}
}
return error.message;
}