Scope.search

Perform unqualified name lookup by following the chain of scopes up until found.

struct Scope
extern (C++)
search
(
const ref Loc loc
,,,
int flags = IgnoreNone
)

Parameters

loc
Type: Loc

location to use for error messages

ident

name to look up

pscopesym
Type: Dsymbol*

if supplied and name is found, set to scope that ident was found in

flags
Type: int

modify search based on flags

Return Value

Type: Dsymbol

symbol if found, null if not

Meta