FieldAccess: Expression . Identifier
Note that there are several kinds of expressions that resemble field access expressions: qualified names, this expressions, and super field access expressions. The following guidelines help with correct usage:
ThisExpression
) containing a simple name. "this" is a keyword, and therefore invalid as an identifier.FieldAccess
) containing a this expression and a simple name. Again, this is because "this" is a keyword, and therefore invalid as an identifier.SuperFieldAccess
). "super" is a also keyword, and therefore invalid as an identifier.QualifiedName
) or as a field access expression (FieldAccess
) containing simple names. Either is acceptable, and there is no way to choose between them without information about what the names resolve to (ASTParser
may return either).FieldAccess
).e.g.$a->$b
e.g.$a->$b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|