mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-05-04 17:20:07 +03:00
Check args similar to tokenCount
This commit is contained in:
parent
9d5081cadc
commit
af53b74106
1 changed files with 2 additions and 2 deletions
|
@ -222,11 +222,11 @@ int main(string[] args)
|
||||||
}
|
}
|
||||||
else if (imports)
|
else if (imports)
|
||||||
{
|
{
|
||||||
const string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $];
|
string[] fileNames = usingStdin ? ["stdin"] : args[1 .. $];
|
||||||
LexerConfig config;
|
LexerConfig config;
|
||||||
config.stringBehavior = StringBehavior.source;
|
config.stringBehavior = StringBehavior.source;
|
||||||
auto visitor = new ImportPrinter;
|
auto visitor = new ImportPrinter;
|
||||||
foreach (name; fileNames)
|
foreach (name; expandArgs(fileNames))
|
||||||
{
|
{
|
||||||
config.fileName = name;
|
config.fileName = name;
|
||||||
auto tokens = getTokensForParser(
|
auto tokens = getTokensForParser(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue