For a SourceFile with the following code :
/** Test1 description */
export class Test1 {
dance(){ ; return}
}
SourceFile : "export class Test1 { dance(){ ; return} }"
SyntaxList : "export class Test1 { dance(){ ; return} }"
ClassDeclaration : "export class Test1 { dance(){ ; return} }"
JSDocComment : "/** Test1 description */"
SyntaxList : "export"
ExportKeyword : "export"
ClassKeyword : "class"
Test1 Identifier : "Test1"
OpenBraceToken : "{"
SyntaxList : "dance(){ ; return}"
MethodDeclaration : "dance(){ ; return}"
dance Identifier : "dance"
OpenParenToken : "("
SyntaxList : ""
CloseParenToken : ")"
Block : "{ ; return}"
OpenBraceToken : "{"
SyntaxList : "; return"
EmptyStatement : ";"
SemicolonToken : ";"
ReturnStatement : "return"
ReturnKeyword : "return"
CloseBraceToken : "}"
CloseBraceToken : "}"
EndOfFileToken : ""
SourceFile : "export class Test1 { dance(){ ; return} }"
ClassDeclaration : "export class Test1 { dance(){ ; return} }"
ExportKeyword : "export"
Test1 Identifier : "Test1"
MethodDeclaration : "dance(){ ; return}"
dance Identifier : "dance"
Block : "{ ; return}"
EmptyStatement : ";"
ReturnStatement : "return"
- SyntaxList (block , params)
- braces and parents tokens
- semicolon tokens
- JSDocComment
- keywords appear in parent statements or expressions