TPascalCodeGenerator.EnsureSection¶
Ensure code is in specified section
Declaration¶
Source position: pascodegen.pp line 80
public
procedure TPascalCodeGenerator.EnsureSection(aSection: TCodeSection);
Description¶
EnsureSection ensures that the current code section is set to the specified section type. If the current section is different from the requested section, it outputs the appropriate section keyword (Const, Type, Var, Resourcestring) and updates the current section.
See also¶
| Name | Description |
|---|---|
| TCodeSection | Pascal code section types |
| TPascalCodeGenerator.CurrentSection | Current code section type |