getProperty

Calculate built-in properties which just the type is necessary.

getProperty

Parameters

t
Type: Type

the type for which the property is calculated

scope_
Type: Scope*

the scope from which the property is being accessed. Used for visibility checks only.

loc
Type: Loc

the location where the property is encountered

ident

the identifier of the property

flag
Type: int

if flag & 1, don't report "not a property" error and just return NULL.

Return Value

expression representing the property, or null if not a property and (flag & 1)

Meta