Mercurial > projects > dil
diff trunk/src/cmd/Statistics.d @ 679:ff6971637f88
Renamed Token member type to kind.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 23:40:12 +0100 |
parents | d422e5f2f3ea |
children | 90668b83ae5e |
line wrap: on
line diff
--- a/trunk/src/cmd/Statistics.d Fri Jan 18 23:11:44 2008 +0100 +++ b/trunk/src/cmd/Statistics.d Fri Jan 18 23:40:12 2008 +0100 @@ -172,13 +172,13 @@ stats.tokenCount += 1; if (printTokensTable) - stats.tokensTable[token.type] += 1; + stats.tokensTable[token.kind] += 1; // Count whitespace characters if (token.ws !is null) stats.whitespaceCount += token.start - token.ws; - switch (token.type) + switch (token.kind) { case TOK.Identifier: stats.identCount++; @@ -204,6 +204,6 @@ break; token = token.next; } - assert(token.type == TOK.EOF); + assert(token.kind == TOK.EOF); return stats; }