This commit is contained in:
Ivan Bondarev 2021-01-07 21:41:04 +01:00
parent fa5a71f48c
commit 4f2da33fb2

View file

@ -17700,6 +17700,8 @@ namespace PascalABCCompiler.TreeConverter
}
catch (Errors.Error ex)
{
if (ex is CompilationErrorWithLocation && (ex as CompilationErrorWithLocation).loc == null)
(ex as CompilationErrorWithLocation).loc = get_location(syntax_statement);
if (ThrowCompilationError || ex is MemberIsNotDeclaredInType || ex is UndefinedNameReference)//TODO: add interface
throw ex;
else