TBasicDeclaration
Declaration
TBasicDeclaration = class
Visibility
global
Immediate descendants
TDeclaration
Source
defdriver.pas on line 202
Description
An abstract class representing a very general notion of a declaration. Units, linked text and comment files are all treated as such declarations. This class is sometimes instantiated for declarations that were written out and it is not necessary to store their data any more, except for some basic things present here.
Note: the parent-child relationship represents the fact that the child is declared inside parent (i.e. as the member of a class, interface, unit, etc.).
Note: declarations are uniquely identified by their sections, not by the Names field.
Members
Name
|
Type
|
Visibility
|
Synopsis
|
Create
|
constructor
|
public
|
|
Destroy
|
destructor
|
public
|
|
Names
|
field
|
protected
|
Names of all the things declared.
|
ParentDecl
|
field
|
protected
|
The declaration inside which self was declared.
|
Section
|
field
|
protected
|
The section containing the declaration.
|
IsBlockDeclaration
|
field
|
protected
|
This should be set in the constructor of TBlockDeclaration to true.
|
QualifiedName
|
function
|
protected
|
Returns the name of the declaration together with the scope qualifier.
|
|
TBasicDeclaration.Create
Declaration
constructor Create(anames : TStrings; asection : TSection; aparent : TBlockDeclaration);
Visibility
public
Source
defdriver.pas on line 221
TBasicDeclaration.Destroy
Declaration
destructor Destroy; override;
Visibility
public
Source
defdriver.pas on line 223
TBasicDeclaration.Names
Declaration
Names : TStrings;
Visibility
protected
Source
defdriver.pas on line 205
Description
Names of all the things declared.
TBasicDeclaration.ParentDecl
Declaration
ParentDecl : TBlockDeclaration;
Visibility
protected
Source
defdriver.pas on line 209
Description
The declaration inside which self was declared. Nil if it is a root declaration (the root declaration must be of type TRootDeclaration)..
TBasicDeclaration.Section
Declaration
Section : TSection;
Visibility
protected
Source
defdriver.pas on line 211
Description
The section containing the declaration.
TBasicDeclaration.IsBlockDeclaration
Declaration
IsBlockDeclaration : Boolean;
Visibility
protected
Source
defdriver.pas on line 214
Description
This should be set in the constructor of TBlockDeclaration to true. Purely for efficiency reasons.
TBasicDeclaration.QualifiedName
Declaration
function QualifiedName : String;
Visibility
protected
Source
defdriver.pas on line 218
Description
Returns the name of the declaration together with the scope qualifier.