View source code
Display the source code in dmd/func.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.func.resolveFuncCall

Given a symbol that could be either a FuncDeclaration or a function template, resolve it to a function symbol.

FuncDeclaration resolveFuncCall (
  ref const(dmd.globals.Loc) loc,
  dmd.dscope.Scope* sc,
  Dsymbol s,
  dmd.root.array.Array!(dmd.root.rootobject.RootObject)* tiargs,
  Type tthis,
  dmd.root.array.Array!(dmd.expression.Expression)* fargs,
  int flags = 0
);

Parameters

NameDescription
loc instantiation location
sc instantiation scope
s instantiation symbol
tiargs initial list of template arguments
tthis if !NULL, the this argument type
fargs arguments to function
flags 1: do not issue error message on no match, just return NULL 2: overloadResolve only

Returns

if match is found, then function symbol, else null

Authors

Walter Bright

License

Boost License 1.0