{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/252","repository_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle","labels_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/252/comments","events_url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/issues/252/events","html_url":"https://github.com/HaxeCheckstyle/haxe-checkstyle/issues/252","id":148848628,"number":252,"title":"TokenTreeBuilder crash with Map / Hash conditional","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/HaxeCheckstyle/haxe-checkstyle/labels/tokentree","name":"tokentree","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"AlexHaxe","id":7204032,"avatar_url":"https://avatars.githubusercontent.com/u/7204032?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHaxe","html_url":"https://github.com/AlexHaxe","followers_url":"https://api.github.com/users/AlexHaxe/followers","following_url":"https://api.github.com/users/AlexHaxe/following{/other_user}","gists_url":"https://api.github.com/users/AlexHaxe/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHaxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHaxe/subscriptions","organizations_url":"https://api.github.com/users/AlexHaxe/orgs","repos_url":"https://api.github.com/users/AlexHaxe/repos","events_url":"https://api.github.com/users/AlexHaxe/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHaxe/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-16T12:31:45Z","updated_at":"2016-04-16T12:31:45Z","closed_at":null,"body":"This sort of thing is seen every now and then for backwards-compatibility with Haxe 2:\r\n\r\n```haxe\r\nclass Foo {\r\n\tvar library = new #if haxe3 Map<String, #else Hash <#end String>();\r\n}\r\n```\r\n\r\n```\r\n./source/Test.hx:2: characters 58-64: bad token Const(CIdent(String)) != POpen\r\nStacktrace: \r\nCalled from checkstyle.token.TokenStream::consumeTokenDef line 50\r\nCalled from checkstyle.token.walk.WalkPOpen::walkPOpen line 13\r\nCalled from checkstyle.token.walk.WalkNew::walkNew line 15\r\nCalled from checkstyle.token.walk.WalkStatement::walkKeyword line 107\r\nCalled from checkstyle.token.walk.WalkStatement::walkStatement line 37\r\nCalled from checkstyle.token.walk.WalkStatement::walkStatement line 73\r\nCalled from checkstyle.token.walk.WalkVar::walkVar line 30\r\nCalled from checkstyle.token.walk.WalkClass::walkClass line 32\r\nCalled from checkstyle.token.walk.WalkType::walkType line 14\r\nCalled from checkstyle.token.walk.WalkFile::walkFile line 27\r\nCalled from checkstyle.token.TokenTreeBuilder::buildTokenTree line 14\r\nCalled from checkstyle.Checker::getTokenTree line 55\r\nCalled from checkstyle.checks.whitespace.WhitespaceAfterCheck::checkTokens line 88\r\nCalled from checkstyle.checks.whitespace.WhitespaceAfterCheck::actualRun line 84\r\nCalled from checkstyle.checks.Check::run line 41\r\n\r\n```"}}