symbolToExp

Turn symbol s into the expression it represents.

symbolToExp
(,
const ref Loc loc
,,)

Parameters

s
Type: Dsymbol

symbol to resolve

loc
Type: Loc

location of use of s

sc
Type: Scope*

context

hasOverloads
Type: bool

applies if s represents a function. true means it's overloaded and will be resolved later, false means it's the exact function symbol.

Return Value

s turned into an expression, ErrorExp if an error occurred

Meta