Skip to content

Commit 0cb6dfe

Browse files
[funcsem.d] make some function private and restrict import (dlang#21591)
1 parent 619498c commit 0cb6dfe

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

compiler/src/dmd/dstruct.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import dmd.dtemplate;
2828
import dmd.errors;
2929
import dmd.expression;
3030
import dmd.func;
31-
import dmd.funcsem;
31+
import dmd.funcsem : overloadApply;
3232
import dmd.globals;
3333
import dmd.id;
3434
import dmd.identifier;

compiler/src/dmd/funcsem.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ int getLevelAndCheck(FuncDeclaration fd, Loc loc, Scope* sc, FuncDeclaration tar
24542454
* Returns:
24552455
* true if can
24562456
*/
2457-
bool canInferAttributes(FuncDeclaration fd, Scope* sc)
2457+
private bool canInferAttributes(FuncDeclaration fd, Scope* sc)
24582458
{
24592459
if (!fd.fbody)
24602460
return false;
@@ -3306,7 +3306,7 @@ extern (D) PURE isPureBypassingInference(FuncDeclaration fd)
33063306
* Returns:
33073307
* true if reference to `tb` is isolated from reference to `ta`
33083308
*/
3309-
bool traverseIndirections(Type ta, Type tb)
3309+
private bool traverseIndirections(Type ta, Type tb)
33103310
{
33113311
//printf("traverseIndirections(%s, %s)\n", ta.toChars(), tb.toChars());
33123312

@@ -3397,7 +3397,7 @@ bool traverseIndirections(Type ta, Type tb)
33973397
* which could have come from the function's parameters, mutable
33983398
* globals, or uplevel functions.
33993399
*/
3400-
bool isTypeIsolatedIndirect(FuncDeclaration fd, Type t)
3400+
private bool isTypeIsolatedIndirect(FuncDeclaration fd, Type t)
34013401
{
34023402
//printf("isTypeIsolatedIndirect(t: %s)\n", t.toChars());
34033403
assert(t);

0 commit comments

Comments
 (0)