Skip to content

Commit

Permalink
Bugfixo: added Dot support for type name definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Nov 30, 2015
1 parent 0be9a3d commit 5df14a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions checkstyle/TokenTreeBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ class TokenTreeBuilder {
var name:TokenTree;
name = stream.consumeConst();
parent.addChild(name);
if (stream.is(Dot)) {
var dot:TokenTree = stream.consumeTokenDef(Dot);
name.addChild(dot);
walkTypeNameDef(dot);
return name;
}
if (stream.is(Binop(OpLt))) walkLtGt(name);
if (stream.is(Arrow)) {
var arrow:TokenTree = stream.consumeTokenDef(Arrow);
Expand Down

0 comments on commit 5df14a9

Please sign in to comment.