@@ -256,7 +256,7 @@ Signatures::
256
256
Edit [ 2 ] :: With declaration and declarationMap noEmit - Should report errors
257
257
258
258
tsgo - b - v -- noEmit -- declaration -- declarationMap
259
- ExitStatus :: Success
259
+ ExitStatus :: DiagnosticsPresent_OutputsSkipped
260
260
Output ::
261
261
[ [ 90 mHH :MM :SS AM [ 0 m ] Projects in this build :
262
262
* tsconfig . json
@@ -265,8 +265,20 @@ Output::
265
265
266
266
[ [ 90 mHH :MM :SS AM [ 0 m ] Building project 'tsconfig.json' . . .
267
267
268
+ [ 96 ma . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m14 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'p' of exported anonymous class type may not be private or protected .
269
+
270
+ [ 7 m1 [ 0 m export const a = class { private p = 10 ; } ;
271
+ [ 7 m [ 0 m [ 91 m ~ [ 0 m
272
+
273
+ [ 96 ma . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m14 [ 0 m - Add a type annotation to the variable a .
274
+ [ 7 m1 [ 0 m export const a = class { private p = 10 ; } ;
275
+ [ 7 m [ 0 m [ 96 m ~ [ 0 m
276
+
277
+
278
+ Found 1 error in a . ts [ 90 m :1 [ 0 m
279
+
268
280
//// [/home/src/projects/project/tsconfig.tsbuildinfo] *modified*
269
- { "version" :"FakeTSVersion" , "root" :[ [ 2 , 3 ] ] , "fileNames" :[ "lib.d.ts" , "./a.ts" , "./b.ts" ] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };" , "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;" ] , "options" :{ "declaration" :true , "declarationMap" :true } , "affectedFilesPendingEmit" :[ [ 2 , 49 ] , [ 3 , 49 ] ] }
281
+ { "version" :"FakeTSVersion" , "root" :[ [ 2 , 3 ] ] , "fileNames" :[ "lib.d.ts" , "./a.ts" , "./b.ts" ] , "fileInfos" :[ { "version" :"8859c12c614ce56ba9a18e58384a198f-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }\ninterface ReadonlyArray<T> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true , "impliedNodeFormat" :1 } , "9c1fc7106f3a21aadb5219db8b3209bc-export const a = class { private p = 10; };" , "907abc8137ceb88f0ddd6eccfa92d573-export const b = 10;" ] , "options" :{ "declaration" :true , "declarationMap" :true } , "emitDiagnosticsPerFile" :[ [ 2 , [ { "pos" :13 , "end" :14 , "code" :4094 , "category" :1 , "message" :"Property 'p' of exported anonymous class type may not be private or protected." , "relatedInformation" :[ { "pos" :13 , "end" :14 , "code" :9027 , "category" :1 , "message" :"Add a type annotation to the variable a." } ] } ] ] ] , "affectedFilesPendingEmit" :[ [ 2 , 49 ] , [ 3 , 49 ] ] }
270
282
//// [/home/src/projects/project/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
271
283
{
272
284
"version" : "FakeTSVersion" ,
@@ -317,6 +329,29 @@ Output::
317
329
"declaration" : true ,
318
330
"declarationMap" : true
319
331
} ,
332
+ "emitDiagnosticsPerFile" : [
333
+ [
334
+ "./a.ts" ,
335
+ [
336
+ {
337
+ "pos" : 13 ,
338
+ "end" : 14 ,
339
+ "code" : 4094 ,
340
+ "category" : 1 ,
341
+ "message" : "Property 'p' of exported anonymous class type may not be private or protected." ,
342
+ "relatedInformation" : [
343
+ {
344
+ "pos" : 13 ,
345
+ "end" : 14 ,
346
+ "code" : 9027 ,
347
+ "category" : 1 ,
348
+ "message" : "Add a type annotation to the variable a."
349
+ }
350
+ ]
351
+ }
352
+ ]
353
+ ]
354
+ ] ,
320
355
"affectedFilesPendingEmit" : [
321
356
[
322
357
"./a.ts" ,
@@ -335,31 +370,14 @@ Output::
335
370
]
336
371
]
337
372
] ,
338
- "size" : 1100
373
+ "size" : 1390
339
374
}
340
375
341
376
tsconfig . json ::
342
377
SemanticDiagnostics ::
343
378
Signatures ::
344
379
345
380
346
- Diff :: ! ! ! Unexpected diff , please review and either fix or write explanation as expectedDiff ! ! !
347
- -- - nonIncremental . output . txt
348
- ++ + incremental . output . txt
349
- @@ - 1 , 12 + 0 , 0 @@
350
- - [ 96 ma . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m14 [ 0 m - [ 91 merror [ 0 m [ 90 m TS4094 : [ 0 mProperty 'p' of exported anonymous class type may not be private or protected .
351
- -
352
- - [ 7 m1 [ 0 m export const a = class { private p = 10 ; } ;
353
- - [ 7 m [ 0 m [ 91 m ~ [ 0 m
354
- -
355
- - [ 96 ma . ts [ 0 m :[ 93 m1 [ 0 m :[ 93 m14 [ 0 m - Add a type annotation to the variable a .
356
- - [ 7 m1 [ 0 m export const a = class { private p = 10 ; } ;
357
- - [ 7 m [ 0 m [ 96 m ~ [ 0 m
358
- -
359
- -
360
- - Found 1 error in a . ts [ 90 m :1 [ 0 m
361
- -
362
-
363
381
Edit [ 3 ] :: no change
364
382
365
383
tsgo - b - v -- noEmit
@@ -381,7 +399,7 @@ Output::
381
399
[ [ 90 mHH :MM :SS AM [ 0 m ] Projects in this build :
382
400
* tsconfig . json
383
401
384
- [ [ 90 mHH :MM :SS AM [ 0 m ] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that some of the changes were not emitted
402
+ [ [ 90 mHH :MM :SS AM [ 0 m ] Project 'tsconfig.json' is out of date because buildinfo file 'tsconfig.tsbuildinfo' indicates that program needs to report errors .
385
403
386
404
[ [ 90 mHH :MM :SS AM [ 0 m ] Building project 'tsconfig.json' . . .
387
405
0 commit comments