@@ -1179,9 +1179,9 @@ TipData tipForDeclaration(Declaration decl)
11791179 auto fntype = decl.type ? decl.type.isTypeFunction() : null ;
11801180
11811181 if (auto td = fntype && decl.parent ? decl.parent.isTemplateDeclaration() : null )
1182- functionToBufferFull(fntype, buf, decl.getIdent(), & hgs, td);
1182+ functionToBufferFull(fntype, buf, decl.getIdent(), hgs, td);
11831183 else if (fntype)
1184- functionToBufferWithIdent(fntype, buf, decl.toPrettyChars(true ), & hgs, func.isStatic);
1184+ functionToBufferWithIdent(fntype, buf, decl.toPrettyChars(true ), hgs, func.isStatic);
11851185 else
11861186 buf.writestring(decl.toPrettyChars(true ));
11871187 auto res = buf.extractSlice(); // take ownership
@@ -2524,7 +2524,7 @@ string[] findExpansions(Module mod, int line, int index, string tok)
25242524
25252525 case EXP .dotVariable:
25262526 case EXP .dotIdentifier:
2527- flags |= SearchLocalsOnly ;
2527+ flags |= SearchOpt.localsOnly ;
25282528 if (recursed)
25292529 if (auto dve = e.isDotVarExp())
25302530 if (dve.varloc.filename) // skip compiler generated idents (alias this)
@@ -2534,7 +2534,7 @@ string[] findExpansions(Module mod, int line, int index, string tok)
25342534 return getType (e1, true );
25352535
25362536 case EXP .dot:
2537- flags |= SearchLocalsOnly ;
2537+ flags |= SearchOpt.localsOnly ;
25382538 return (cast (DotExp)e).e1.type;
25392539 default :
25402540 return recursed ? e.type : null ;
@@ -2593,9 +2593,9 @@ string[] findExpansions(Module mod, int line, int index, string tok)
25932593 {
25942594 if (! sym)
25952595 return ;
2596- int sflags = SearchLocalsOnly ;
2596+ int sflags = SearchOpt.localsOnly ;
25972597 if (sym.getModule() == mod)
2598- sflags |= IgnoreSymbolVisibility ;
2598+ sflags |= SearchOpt.ignoreVisibility ;
25992599 searchScope(sym, sflags);
26002600 }
26012601 // base classes
@@ -2638,14 +2638,14 @@ string[] findExpansions(Module mod, int line, int index, string tok)
26382638 }
26392639 }
26402640
2641- if (flags & SearchLocalsOnly )
2641+ if (flags & SearchOpt.localsOnly )
26422642 break ;
26432643
26442644 // imported modules
26452645 size_t cnt = sd.importedScopes ? sd.importedScopes.dim : 0 ;
26462646 for (size_t i = 0 ; i < cnt; i++ )
26472647 {
2648- if ((flags & IgnorePrivateImports ) && sd.visibilities[i] == Visibility.Kind.private_)
2648+ if ((flags & SearchOpt.ignorePrivateImports ) && sd.visibilities[i] == Visibility.Kind.private_)
26492649 continue ;
26502650 auto ss = (* sd.importedScopes)[i].isScopeDsymbol();
26512651 if (! ss)
@@ -2654,17 +2654,17 @@ string[] findExpansions(Module mod, int line, int index, string tok)
26542654 int sflags = 0 ;
26552655 if (ss.isModule())
26562656 {
2657- if (flags & SearchLocalsOnly )
2657+ if (flags & SearchOpt.localsOnly )
26582658 continue ;
2659- sflags |= IgnorePrivateImports ;
2659+ sflags |= SearchOpt.ignorePrivateImports ;
26602660 }
26612661 else // mixin template
26622662 {
2663- if (flags & SearchImportsOnly )
2663+ if (flags & SearchOpt.importsOnly )
26642664 continue ;
2665- sflags |= SearchLocalsOnly ;
2665+ sflags |= SearchOpt.localsOnly ;
26662666 }
2667- searchScope(ss, sflags | IgnorePrivateImports );
2667+ searchScope(ss, sflags | SearchOpt.ignorePrivateImports );
26682668 }
26692669 }
26702670 }
0 commit comments