#include <DeclRewriter.h>
Definition at line 25 of file DeclRewriter.h.
comma::DeclRewriter::DeclRewriter | ( | AstResource & | resource, | |
DeclRegion * | context, | |||
DeclRegion * | origin | |||
) | [inline] |
Constructs a DeclRewriter using the given AstResource to generate new AST nodes. The context
parameter defines the declarative region in which any rewritten declarations are to be declared in. The origin
parameter defines the source of the declarations to be rewritten. The resulting rewriter does not contain any rewrite rules.
Definition at line 34 of file DeclRewriter.h.
comma::DeclRewriter::DeclRewriter | ( | const AstRewriter & | rewrites, | |
DeclRegion * | context, | |||
DeclRegion * | origin | |||
) | [inline] |
Constructs a DeclRewriter using an existing AstRewriter.
Definition at line 39 of file DeclRewriter.h.
DeclRegion* comma::DeclRewriter::getContext | ( | ) | [inline] |
Returns the current context associated with this rewriter.
Definition at line 64 of file DeclRewriter.h.
const DeclRegion* comma::DeclRewriter::getContext | ( | ) | const [inline] |
Returns the current context associated with this rewriter.
Definition at line 63 of file DeclRewriter.h.
DeclRegion* comma::DeclRewriter::getOrigin | ( | ) | [inline] |
Returns the current context associated with this rewriter.
Definition at line 70 of file DeclRewriter.h.
const DeclRegion* comma::DeclRewriter::getOrigin | ( | ) | const [inline] |
Returns the current origin associated with this rewriter.
Definition at line 69 of file DeclRewriter.h.
AccessDecl * DeclRewriter::rewriteAccessDecl | ( | AccessDecl * | access | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 258 of file DeclRewriter.cpp.
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 132 of file DeclRewriter.cpp.
CarrierDecl * DeclRewriter::rewriteCarrierDecl | ( | CarrierDecl * | carrier | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 243 of file DeclRewriter.cpp.
Rewrites the given declaration node.
Definition at line 333 of file DeclRewriter.cpp.
EnumerationDecl * DeclRewriter::rewriteEnumerationDecl | ( | EnumerationDecl * | edecl | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 95 of file DeclRewriter.cpp.
FunctionDecl * DeclRewriter::rewriteFunctionDecl | ( | FunctionDecl * | fdecl | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 49 of file DeclRewriter.cpp.
IncompleteTypeDecl * DeclRewriter::rewriteIncompleteTypeDecl | ( | IncompleteTypeDecl * | ITD | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 219 of file DeclRewriter.cpp.
IntegerDecl * DeclRewriter::rewriteIntegerDecl | ( | IntegerDecl * | idecl | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 165 of file DeclRewriter.cpp.
ProcedureDecl * DeclRewriter::rewriteProcedureDecl | ( | ProcedureDecl * | pdecl | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 72 of file DeclRewriter.cpp.
RecordDecl * DeclRewriter::rewriteRecordDecl | ( | RecordDecl * | rdecl | ) |
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 192 of file DeclRewriter.cpp.
FIXME: Array types will eventually have primitive operations defined on them. Generate and mirror the results.
Definition at line 290 of file DeclRewriter.cpp.
void comma::DeclRewriter::setContext | ( | DeclRegion * | context | ) | [inline] |
Switches the context associated with this decl rewriter.
Definition at line 47 of file DeclRewriter.h.
void comma::DeclRewriter::setOrigin | ( | DeclRegion * | origin | ) | [inline] |
Switches the origin associated with this decl rewriter.
Definition at line 56 of file DeclRewriter.h.