Slide 56
Slide 56 text
56
Frontend de KANPAI! #7 Going on
Design Engineering Group, Design Strategies Dept, Design Unit
2019.7.19
SourceFileObject {
pos: 0,
end: 23,
flags: 0,
modifierFlagsCache: 0,
transformFlags: 0,
parent: undefined,
kind: 285,
text: 'const x: number = 42',
bindDiagnostics: [],
bindSuggestionDiagnostics: undefined,
languageVersion: 2,
fileName: 'test.ts',
languageVariant: 0,
isDeclarationFile: false,
scriptKind: 3,
pragmas: Map {},
checkJsDirective: undefined,
referencedFiles: [],
typeReferenceDirectives: [],
libReferenceDirectives: [],
amdDependencies: [],
hasNoDefaultLib: false,
statements: [
NodeObject {
pos: 0,
end: 23,
flags: 0,
modifierFlagsCache: 536870912,
transformFlags: 0,
parent: undefined,
kind: 220,
decorators: undefined,
modifiers: undefined,
declarationList: [NodeObject]
},
pos: 0,
end: 23
],
endOfFileToken: TokenObject {
pos: 23,
end: 23,
flags: 0,
modifierFlagsCache: 0,
transformFlags: 0,
parent: undefined,
kind: 1
},
externalModuleIndicator: undefined,
nodeCount: 8,
identifierCount: 1,
identifiers: Map { 'x' => 'x' },
parseDiagnostics: []
}
$ ts-node main.ts