comma::SelectedExpr Class Reference

Represents a selected component. More...

#include <Expr.h>

Inheritance diagram for comma::SelectedExpr:
Inheritance graph
[legend]
Collaboration diagram for comma::SelectedExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SelectedExpr (Expr *prefix, Decl *component, Location loc, Type *type)
 SelectedExpr (Expr *prefix, IdentifierInfo *component, Location loc)
bool isAmbiguous () const
 Returns true if this selected expression is ambiguous.
void resolve (Decl *component, Type *type)
 Resolves this selected expression.
IdentifierInfogetSelectorIdInfo () const
 Returns the identifier associated with this selected expression.
Location getSelectorLoc () const
 Returns the location of the selected declaration.



const ExprgetPrefix () const
 Returns the prefix of this SelectedExpr.
ExprgetPrefix ()
 Returns the prefix of this SelectedExpr.
const DeclgetSelectorDecl () const
DeclgetSelectorDecl ()
 Returns the prefix of this SelectedExpr.

Static Public Member Functions

static bool classof (const SelectedExpr *node)
 Support isa and dyn_cast.
static bool classof (const Ast *node)

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.

comma::SelectedExpr::SelectedExpr ( Expr prefix,
IdentifierInfo component,
Location  loc 
) [inline]

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]

Reimplemented from comma::Expr.

Definition at line 393 of file Expr.h.

static bool comma::SelectedExpr::classof ( const SelectedExpr node  )  [inline, static]

Support isa and dyn_cast.

Reimplemented from comma::Expr.

Definition at line 392 of file Expr.h.

Expr* comma::SelectedExpr::getPrefix (  )  [inline]

Returns the prefix of this SelectedExpr.

Definition at line 370 of file Expr.h.

const Expr* comma::SelectedExpr::getPrefix (  )  const [inline]

Returns the prefix of this SelectedExpr.

Definition at line 369 of file Expr.h.

Decl* comma::SelectedExpr::getSelectorDecl (  )  [inline]

Returns the prefix of this SelectedExpr.

Definition at line 377 of file Expr.h.

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:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1