lazarus/components/codetools/examples/testscompleteblock/procedurebeginifbegin1_result.inc
2011-11-02 23:17:24 +00:00

24 lines
625 B
PHP

{%MainUnit unit1.pas}
procedure Do1;
procedure BeginBlock(Typ: TFABBlockType);
var
ParentBlock: PBlock;
begin
if (Stack.Top>=0) then begin
ParentBlock:=@Stack.Stack[Stack.Top];
if (ParentBlock^.InnerStartPos=AtomStart)
and (Policies<>nil) then begin
Policies.AddIndent(ParentBlock^.Typ,Typ,ParentBlock^.InnerIdent);
end;
end;
Stack.BeginBlock(Typ,AtomStart);
{$IFDEF ShowCodeBeautifierParser}
DebugLn([GetIndentStr(Stack.Top*2),'BeginBlock ',EnumToStr(Typ),' ',GetAtomString(@Src[AtomStart],NestedComments),' at ',PosToStr(p)]);
{$ENDIF}
end;
begin
end;