Ignore:
Timestamp:
Oct 18, 2010, 2:14:52 PM (14 years ago)
Author:
george
Message:
  • Modified: Advanced record parsing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Transpascal/Compiler/USourceCode.pas

    r65 r68  
    1515
    1616  TNodeType = (ntNone, ntVariable, ntFunction, ntConstant, ntOperator);
     17
     18  TTypeVisibility = (tvPublic, tvPublished, tvPrivate, tvProtected);
    1719
    1820  TValue = Variant; //array of Byte;
     
    156158    Size: Integer;
    157159    UsedType: TType;
     160    Visibility: TTypeVisibility;
    158161  end;
    159162
     
    162165
    163166  TTypeRecord = class(TType)
    164     Items: TObjectList; // TObjectList<TType>
     167    CommonBlock: TCommonBlock;
    165168    constructor Create;
    166169    destructor Destroy; override;
     
    714717begin
    715718  inherited;
    716   Items := TObjectList.Create;
     719  CommonBlock := TCommonBlock.Create;
    717720end;
    718721
    719722destructor TTypeRecord.Destroy;
    720723begin
    721   Items.Free;
     724  CommonBlock.Free;
    722725  inherited Destroy;
    723726end;
Note: See TracChangeset for help on using the changeset viewer.