mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 13:20:07 +03:00
Fixed range error
This commit is contained in:
parent
1c057260d5
commit
e3819643bb
1 changed files with 4 additions and 0 deletions
|
@ -6047,6 +6047,7 @@ protected:
|
|||
bool isDeclaration()
|
||||
{
|
||||
mixin(traceEnterAndExit!(__FUNCTION__));
|
||||
if (!moreTokens()) return false;
|
||||
with (TokenType) switch (current.type)
|
||||
{
|
||||
case final_:
|
||||
|
@ -6131,6 +6132,7 @@ protected:
|
|||
|
||||
bool isStatement()
|
||||
{
|
||||
if (!moreTokens()) return false;
|
||||
auto b = setBookmark();
|
||||
scope (exit) goToBookmark(b);
|
||||
return parseStatement() !is null;
|
||||
|
@ -6138,6 +6140,7 @@ protected:
|
|||
|
||||
bool isExpression()
|
||||
{
|
||||
if (!moreTokens()) return false;
|
||||
auto b = setBookmark();
|
||||
scope (exit) goToBookmark(b);
|
||||
return parseExpression() !is null;
|
||||
|
@ -6145,6 +6148,7 @@ protected:
|
|||
|
||||
bool isType()
|
||||
{
|
||||
if (!moreTokens()) return false;
|
||||
auto b = setBookmark();
|
||||
scope (exit) goToBookmark(b);
|
||||
if (parseType() is null) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue