mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 15:09:58 +02:00
* better error recovering
git-svn-id: trunk@490 -
This commit is contained in:
parent
4292e7f939
commit
c6ad403a04
@ -304,10 +304,13 @@ implementation
|
||||
begin
|
||||
result:=cloadnode.create(srsym,srsymtable);
|
||||
include(result.flags,nf_is_self);
|
||||
resulttypepass(result);
|
||||
end
|
||||
else
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
begin
|
||||
result:=cerrornode.create;
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
end;
|
||||
resulttypepass(result);
|
||||
end;
|
||||
|
||||
|
||||
@ -319,12 +322,13 @@ implementation
|
||||
result:=nil;
|
||||
searchsym('result',srsym,srsymtable);
|
||||
if assigned(srsym) then
|
||||
begin
|
||||
result:=cloadnode.create(srsym,srsymtable);
|
||||
resulttypepass(result);
|
||||
end
|
||||
result:=cloadnode.create(srsym,srsymtable)
|
||||
else
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
begin
|
||||
result:=cerrornode.create;
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
end;
|
||||
resulttypepass(result);
|
||||
end;
|
||||
|
||||
|
||||
@ -339,10 +343,13 @@ implementation
|
||||
begin
|
||||
result:=cloadnode.create(srsym,srsymtable);
|
||||
include(result.flags,nf_load_self_pointer);
|
||||
resulttypepass(result);
|
||||
end
|
||||
else
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
begin
|
||||
result:=cerrornode.create;
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
end;
|
||||
resulttypepass(result);
|
||||
end;
|
||||
|
||||
|
||||
@ -354,12 +361,13 @@ implementation
|
||||
result:=nil;
|
||||
searchsym('vmt',srsym,srsymtable);
|
||||
if assigned(srsym) then
|
||||
begin
|
||||
result:=cloadnode.create(srsym,srsymtable);
|
||||
resulttypepass(result);
|
||||
end
|
||||
result:=cloadnode.create(srsym,srsymtable)
|
||||
else
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
begin
|
||||
result:=cerrornode.create;
|
||||
CGMessage(parser_e_illegal_expression);
|
||||
end;
|
||||
resulttypepass(result);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user