Skip to content

TPascalCodeGenerator.CurrentSection

Current code section type

Declaration

Source position: pascodegen.pp line 104

public property CurrentSection: TCodeSection;

Description

CurrentSection indicates the current section type being generated. Reading this property returns the section type at the top of the section stack. Writing to this property changes the current section without affecting the stack.

See also

Name Description
TCodeSection Pascal code section types
TPascalCodeGenerator.EnsureSection Ensure code is in specified section
TPascalCodeGenerator.PushSection Push section onto section stack
TPascalCodeGenerator.PopSection Pop section from section stack