fixups
This commit is contained in:
parent
855250f6f0
commit
674f72750a
|
|
@ -51,6 +51,7 @@ ScopeSymbolPair generateAutocompleteTrees(const(Token)[] tokens,
|
||||||
|
|
||||||
void tryResolve(Scope* sc, ref ModuleCache cache)
|
void tryResolve(Scope* sc, ref ModuleCache cache)
|
||||||
{
|
{
|
||||||
|
if (sc is null) return;
|
||||||
auto symbols = sc.symbols;
|
auto symbols = sc.symbols;
|
||||||
foreach (item; symbols)
|
foreach (item; symbols)
|
||||||
{
|
{
|
||||||
|
|
@ -77,6 +78,7 @@ ScopeSymbolPair generateAutocompleteTrees(const(Token)[] tokens,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (part.symbolFile == "stdin") return;
|
||||||
auto moduleSymbol = cache.getModuleSymbol(part.symbolFile);
|
auto moduleSymbol = cache.getModuleSymbol(part.symbolFile);
|
||||||
auto first = moduleSymbol.getFirstPartNamed(typeName);
|
auto first = moduleSymbol.getFirstPartNamed(typeName);
|
||||||
if (first !is null)
|
if (first !is null)
|
||||||
|
|
|
||||||
|
|
@ -247,6 +247,7 @@ do
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// store the callTip, that'll be useful to resolve the type later
|
// store the callTip, that'll be useful to resolve the type later
|
||||||
|
if (symbol.callTip is null)
|
||||||
symbol.callTip = istring(part);
|
symbol.callTip = istring(part);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue