mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 14:29:25 +02:00
fcl-passrc: paswrite: proper write for properties (previously WriteProperty was not executed)
git-svn-id: trunk@36608 -
This commit is contained in:
parent
b35522d947
commit
bcacbe1cba
@ -131,6 +131,8 @@ begin
|
|||||||
WriteModule(TPasModule(AElement))
|
WriteModule(TPasModule(AElement))
|
||||||
else if AElement.InheritsFrom(TPasSection) then
|
else if AElement.InheritsFrom(TPasSection) then
|
||||||
WriteSection(TPasSection(AElement))
|
WriteSection(TPasSection(AElement))
|
||||||
|
else if AElement.ClassType = TPasProperty then
|
||||||
|
WriteProperty(TPasProperty(AElement))
|
||||||
else if AElement.InheritsFrom(TPasVariable) then
|
else if AElement.InheritsFrom(TPasVariable) then
|
||||||
WriteVariable(TPasVariable(AElement))
|
WriteVariable(TPasVariable(AElement))
|
||||||
else if AElement.InheritsFrom(TPasType) then
|
else if AElement.InheritsFrom(TPasType) then
|
||||||
@ -139,8 +141,6 @@ begin
|
|||||||
WriteProcDecl(TPasProcedure(AElement))
|
WriteProcDecl(TPasProcedure(AElement))
|
||||||
else if AElement.InheritsFrom(TPasProcedureImpl) then
|
else if AElement.InheritsFrom(TPasProcedureImpl) then
|
||||||
WriteProcImpl(TPasProcedureImpl(AElement))
|
WriteProcImpl(TPasProcedureImpl(AElement))
|
||||||
else if AElement.ClassType = TPasProperty then
|
|
||||||
WriteProperty(TPasProperty(AElement))
|
|
||||||
else
|
else
|
||||||
raise Exception.Create('Writing not implemented for ' +
|
raise Exception.Create('Writing not implemented for ' +
|
||||||
AElement.ElementTypeName + ' nodes');
|
AElement.ElementTypeName + ' nodes');
|
||||||
|
Loading…
Reference in New Issue
Block a user