Fix range violation with index expressions
This commit is contained in:
parent
1ac5ff1fd7
commit
63e4c2cf47
3
makefile
3
makefile
|
@ -100,7 +100,8 @@ DEBUG_SERVER_FLAGS := -Icontainers/src\
|
||||||
-Ilibdparse/src\
|
-Ilibdparse/src\
|
||||||
-wi\
|
-wi\
|
||||||
-g\
|
-g\
|
||||||
-ofbin/dcd-server
|
-ofbin/dcd-server\
|
||||||
|
-J.
|
||||||
|
|
||||||
GDC_SERVER_FLAGS := -Icontainers/src\
|
GDC_SERVER_FLAGS := -Icontainers/src\
|
||||||
-Imsgpack-d/src\
|
-Imsgpack-d/src\
|
||||||
|
|
|
@ -727,11 +727,13 @@ ACSymbol*[] getSymbolsByTokenChain(T)(Scope* completionScope,
|
||||||
if (!p.isSliceExpression())
|
if (!p.isSliceExpression())
|
||||||
{
|
{
|
||||||
symbols = symbols[0].type is null ? [] : [symbols[0].type];
|
symbols = symbols[0].type is null ? [] : [symbols[0].type];
|
||||||
|
if (symbols.length == 0)
|
||||||
|
break loop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (symbols[0].qualifier == SymbolQualifier.assocArray)
|
else if (symbols[0].qualifier == SymbolQualifier.assocArray)
|
||||||
{
|
{
|
||||||
symbols = symbols[0].type is null ? [] :[symbols[0].type];
|
symbols = symbols[0].type is null ? [] : [symbols[0].type];
|
||||||
skip();
|
skip();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue