mirror of
https://github.com/dlang/dmd.git
synced 2025-04-29 22:50:27 +03:00
[expressionsem.d] make some functions private (#16954)
This commit is contained in:
parent
62566ef1fe
commit
14f2e5c968
1 changed files with 3 additions and 3 deletions
|
@ -346,7 +346,7 @@ StringExp toUTF8(StringExp se, Scope* sc)
|
|||
* Returns:
|
||||
* ErrorExp
|
||||
*/
|
||||
extern (D) Expression incompatibleTypes(UnaExp e)
|
||||
private Expression incompatibleTypes(UnaExp e)
|
||||
{
|
||||
if (e.e1.type.toBasetype() == Type.terror)
|
||||
return e.e1;
|
||||
|
@ -16320,7 +16320,7 @@ private Expression modifiableLvalueImpl(Expression _this, Scope* sc, Expression
|
|||
* Returns:
|
||||
* `true` if ok, `false` for error
|
||||
*/
|
||||
bool checkAddressVar(Scope* sc, Expression exp, VarDeclaration v)
|
||||
private bool checkAddressVar(Scope* sc, Expression exp, VarDeclaration v)
|
||||
{
|
||||
//printf("checkAddressVar(exp: %s, v: %s)\n", exp.toChars(), v.toChars());
|
||||
if (v is null)
|
||||
|
@ -16504,7 +16504,7 @@ Expression getThisSkipNestedFuncs(const ref Loc loc, Scope* sc, Dsymbol s, Aggre
|
|||
* newly created variable such that a closure is made for the variable when
|
||||
* the address of `fd` is taken.
|
||||
*/
|
||||
VarDeclaration makeThis2Argument(const ref Loc loc, Scope* sc, FuncDeclaration fd)
|
||||
private VarDeclaration makeThis2Argument(const ref Loc loc, Scope* sc, FuncDeclaration fd)
|
||||
{
|
||||
Type tthis2 = Type.tvoidptr.sarrayOf(2);
|
||||
VarDeclaration vthis2 = new VarDeclaration(loc, tthis2, Identifier.generateId("__this"), null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue