Minor cleanup
This commit is contained in:
parent
4a7f4b3da4
commit
982510c50c
2
ctags.d
2
ctags.d
|
@ -26,7 +26,7 @@ void printCtags(File output, string[] fileNames)
|
||||||
f.rawRead(bytes);
|
f.rawRead(bytes);
|
||||||
LexerConfig config;
|
LexerConfig config;
|
||||||
auto tokens = byToken(bytes, config);
|
auto tokens = byToken(bytes, config);
|
||||||
Module m = parseModule(tokens.array(), fileName);
|
Module m = parseModule(tokens.array(), fileName, &doNothing);
|
||||||
auto printer = new CTagsPrinter;
|
auto printer = new CTagsPrinter;
|
||||||
printer.fileName = fileName;
|
printer.fileName = fileName;
|
||||||
printer.visit(m);
|
printer.visit(m);
|
||||||
|
|
|
@ -1064,6 +1064,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ size_t location;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2050,6 +2051,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ size_t location;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2061,6 +2063,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ size_t location;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2146,6 +2149,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ size_t location;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2157,6 +2161,7 @@ public:
|
||||||
mixin (visitIfNotNull!(functionBody));
|
mixin (visitIfNotNull!(functionBody));
|
||||||
}
|
}
|
||||||
/** */ FunctionBody functionBody;
|
/** */ FunctionBody functionBody;
|
||||||
|
/** */ size_t location;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
@ -2271,11 +2276,11 @@ class Symbol : ASTNode
|
||||||
public:
|
public:
|
||||||
override void accept(ASTVisitor visitor)
|
override void accept(ASTVisitor visitor)
|
||||||
{
|
{
|
||||||
mixin (visitIfNotNull!(dot, identifierOrTemplateChain));
|
mixin (visitIfNotNull!(identifierOrTemplateChain));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** */ IdentifierOrTemplateChain identifierOrTemplateChain;
|
/** */ IdentifierOrTemplateChain identifierOrTemplateChain;
|
||||||
/** */ Token dot;
|
/** */ bool dot;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|
|
@ -4722,7 +4722,10 @@ q{(int a, ...)
|
||||||
mixin(traceEnterAndExit!(__FUNCTION__));
|
mixin(traceEnterAndExit!(__FUNCTION__));
|
||||||
auto node = new Symbol;
|
auto node = new Symbol;
|
||||||
if (currentIs(TokenType.dot))
|
if (currentIs(TokenType.dot))
|
||||||
node.dot = advance();
|
{
|
||||||
|
node.dot = true;
|
||||||
|
advance();
|
||||||
|
}
|
||||||
node.identifierOrTemplateChain = parseIdentifierOrTemplateChain();
|
node.identifierOrTemplateChain = parseIdentifierOrTemplateChain();
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue