comma::Decl Class Reference
#include <Decl.h>
List of all members.
Detailed Description
Definition at line 32 of file Decl.h.
Constructor & Destructor Documentation
virtual comma::Decl::~Decl |
( |
|
) |
[inline, virtual] |
Member Function Documentation
Returns this cast to a DeclRegion, or null if this decl is not also a declarative region.
Definition at line 32 of file Decl.cpp.
static bool comma::Decl::classof |
( |
const Ast * |
node |
) |
[inline, static] |
Reimplemented in comma::FunctionAttribDecl, comma::PosAD, comma::ValAD, comma::ImportDecl, comma::ExceptionDecl, comma::ModelDecl, comma::Sigoid, comma::SignatureDecl, comma::VarietyDecl, comma::Domoid, comma::AddDecl, comma::DomainDecl, comma::FunctorDecl, comma::SigInstanceDecl, comma::ValueDecl, comma::ParamValueDecl, comma::ObjectDecl, comma::RenamedObjectDecl, comma::LoopDecl, comma::SubroutineDecl, comma::ProcedureDecl, comma::FunctionDecl, comma::EnumLiteral, comma::TypeDecl, comma::IncompleteTypeDecl, comma::CarrierDecl, comma::EnumerationDecl, comma::IntegerDecl, comma::ArrayDecl, comma::RecordDecl, comma::ComponentDecl, comma::AccessDecl, comma::DomainTypeDecl, comma::AbstractDomainDecl, comma::DomainInstanceDecl, and comma::PercentDecl.
Definition at line 109 of file Decl.h.
static bool comma::Decl::classof |
( |
const Decl * |
node |
) |
[inline, static] |
Support isa and dyn_cast.
Reimplemented from comma::Ast.
Reimplemented in comma::FunctionAttribDecl, comma::PosAD, comma::ValAD, comma::ImportDecl, comma::ExceptionDecl, comma::ModelDecl, comma::Sigoid, comma::SignatureDecl, comma::VarietyDecl, comma::Domoid, comma::AddDecl, comma::DomainDecl, comma::FunctorDecl, comma::SigInstanceDecl, comma::ValueDecl, comma::ParamValueDecl, comma::ObjectDecl, comma::RenamedObjectDecl, comma::LoopDecl, comma::SubroutineDecl, comma::ProcedureDecl, comma::FunctionDecl, comma::EnumLiteral, comma::TypeDecl, comma::IncompleteTypeDecl, comma::CarrierDecl, comma::EnumerationDecl, comma::IntegerDecl, comma::ArrayDecl, comma::RecordDecl, comma::ComponentDecl, comma::AccessDecl, comma::DomainTypeDecl, comma::AbstractDomainDecl, comma::DomainInstanceDecl, and comma::PercentDecl.
Definition at line 108 of file Decl.h.
const DeclRegion* comma::Decl::getDeclRegion |
( |
|
) |
const [inline] |
DeclRegion* comma::Decl::getDeclRegion |
( |
|
) |
[inline] |
Location comma::Decl::getLocation |
( |
|
) |
const [inline, virtual] |
Accesses the location of this node.
If no location information is available, or if this node was created internally by the compiler, an invalid location object (queriable by Location::isValid()) is returned.
Reimplemented from comma::Ast.
Definition at line 48 of file Decl.h.
const Decl* comma::Decl::getOrigin |
( |
|
) |
const [inline] |
Decl* comma::Decl::getOrigin |
( |
|
) |
[inline] |
Returns the origin of this decl, or null if there is no associated origin.
A declaration has an origin if it is not an immediate declaration. That is to say, the declaration was implicitly generated due to inheritance from a supersignature. The returned node is the actual declaration object provided by some supersignature.
- See also:
- isImmediate
Reimplemented in comma::SubroutineDecl.
Definition at line 81 of file Decl.h.
const char* comma::Decl::getString |
( |
|
) |
const [inline] |
bool comma::Decl::hasOrigin |
( |
|
) |
const [inline] |
Returns true if this decl has an origin.
Definition at line 85 of file Decl.h.
bool comma::Decl::isDeclaredIn |
( |
const DeclRegion * |
region |
) |
const [inline] |
bool comma::Decl::isImmediate |
( |
|
) |
const [inline] |
Returns true if this declaration is immediate.
An immediate declaration is one which directly corresponds to a declaration voiced in the source code -- as opposed to one implicitly generated by the compiler. The canonical example of a non-immediate declaration is one which was inherited from a supersignature.
Definition at line 105 of file Decl.h.
const Decl* comma::Decl::resolveOrigin |
( |
|
) |
const [inline] |
Decl * Decl::resolveOrigin |
( |
|
) |
|
void comma::Decl::setDeclRegion |
( |
DeclRegion * |
region |
) |
[inline] |
void comma::Decl::setOrigin |
( |
Decl * |
decl |
) |
[inline] |
Sets the origin of this decl.
Definition at line 88 of file Decl.h.
Member Data Documentation
The documentation for this class was generated from the following files: