comma::SelectedExpr Class Reference
Represents a selected component.
More...
#include <Expr.h>
List of all members.
Detailed Description
Represents a selected component.
Definition at line 340 of file Expr.h.
Constructor & Destructor Documentation
| comma::SelectedExpr::SelectedExpr |
( |
Expr * |
prefix, |
|
|
Decl * |
component, |
|
|
Location |
loc, |
|
|
Type * |
type | |
|
) |
| | [inline] |
Constructs a selected component of the form P.C, where prefix is the expression corresponding to P, component is the selected declaration corresponding to C, and loc is the location of component.
Definition at line 347 of file Expr.h.
Constructs an ambiguous selected component. SelectedExpr nodes produced by this constructor must be filled in with a call to resolve().
Definition at line 353 of file Expr.h.
Member Function Documentation
| static bool comma::SelectedExpr::classof |
( |
const Ast * |
node |
) |
[inline, static] |
| static bool comma::SelectedExpr::classof |
( |
const SelectedExpr * |
node |
) |
[inline, static] |
| Expr* comma::SelectedExpr::getPrefix |
( |
|
) |
[inline] |
| const Expr* comma::SelectedExpr::getPrefix |
( |
|
) |
const [inline] |
| Decl* comma::SelectedExpr::getSelectorDecl |
( |
|
) |
[inline] |
| const Decl* comma::SelectedExpr::getSelectorDecl |
( |
|
) |
const [inline] |
Returns the selected declaration. If this is an ambiguous selected expression an assertion will fire.
Definition at line 376 of file Expr.h.
| IdentifierInfo* comma::SelectedExpr::getSelectorIdInfo |
( |
|
) |
const [inline] |
Returns the identifier associated with this selected expression.
Definition at line 381 of file Expr.h.
| Location comma::SelectedExpr::getSelectorLoc |
( |
|
) |
const [inline] |
Returns the location of the selected declaration.
Definition at line 389 of file Expr.h.
| bool comma::SelectedExpr::isAmbiguous |
( |
|
) |
const [inline] |
Returns true if this selected expression is ambiguous.
Definition at line 358 of file Expr.h.
| void comma::SelectedExpr::resolve |
( |
Decl * |
component, |
|
|
Type * |
type | |
|
) |
| | [inline] |
Resolves this selected expression.
Definition at line 361 of file Expr.h.
The documentation for this class was generated from the following file: