mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:40:34 +02:00
fcl-passrc: paswrite: allow write TPasImplCommand and TPasImplCommands directly in TPasWriter.WriteElement. Useful way to build pascal code by using predfined code blocks.
git-svn-id: trunk@36616 -
This commit is contained in:
parent
584ef096a0
commit
6006c6a8bd
@ -141,6 +141,8 @@ begin
|
||||
WriteProcDecl(TPasProcedure(AElement))
|
||||
else if AElement.InheritsFrom(TPasProcedureImpl) then
|
||||
WriteProcImpl(TPasProcedureImpl(AElement))
|
||||
else if AElement.InheritsFrom(TPasImplCommand) or AElement.InheritsFrom(TPasImplCommands) then
|
||||
WriteImplElement(TPasImplElement(AElement),false)
|
||||
else
|
||||
raise Exception.Create('Writing not implemented for ' +
|
||||
AElement.ElementTypeName + ' nodes');
|
||||
|
Loading…
Reference in New Issue
Block a user