Added unit test of typeDecl parser.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Separated methodSpecs from fieldDecls of typeDecl.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Removed unused field of parser struct.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Changed the variable and function names in abbreviation.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>