View source code
Display the source code in dmd/templatesem.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.templatesem.createScopeForTemplateParameters

Create a scope for the parameters of the TemplateInstance ti in the parent scope sc from the ScopeDsymbol paramsym.

dmd.dscope.Scope* createScopeForTemplateParameters (
  TemplateDeclaration td,
  TemplateInstance ti,
  dmd.dscope.Scope* sc
);

If paramsym is null a new ScopeDsymbol is used in place of paramsym.

Parameters

NameDescription
td template that ti is an instance of
ti the TemplateInstance whose parameters to generate the scope for.
sc the parent scope of ti

Returns

new scope for the parameters of ti

Authors

Walter Bright

License

Boost License 1.0