Skip to content

Commit

Permalink
2016-08-16 [ci skip] Version: 1.201608160007.1+80c04f8e97aa7ab6c0e1fb…
Browse files Browse the repository at this point in the history
…604bf1551e7057183c
  • Loading branch information
basarat committed Aug 16, 2016
1 parent 7529d3b commit c593764
Show file tree
Hide file tree
Showing 18 changed files with 451 additions and 348 deletions.
2 changes: 1 addition & 1 deletion TypeScript
Submodule TypeScript updated 34 files
+60 −38 Gulpfile.ts
+57 −85 Jakefile.js
+45 −0 scripts/parallel-lint.js
+15 −3 src/compiler/binder.ts
+40 −18 src/compiler/checker.ts
+4 −0 src/compiler/diagnosticMessages.json
+3 −3 src/compiler/parser.ts
+48 −62 src/compiler/performance.ts
+12 −9 src/compiler/program.ts
+8 −2 src/compiler/sourcemap.ts
+4 −0 src/lib/es2015.core.d.ts
+33 −0 tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt
+44 −0 tests/baselines/reference/narrowExceptionVariableInCatchClause.js
+33 −0 tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt
+45 −0 tests/baselines/reference/narrowFromAnyWithInstanceof.js
+50 −0 tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt
+60 −0 tests/baselines/reference/narrowFromAnyWithTypePredicate.js
+51 −9 tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.errors.txt
+30 −8 tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.js
+14 −0 tests/baselines/reference/unusedParameterProperty1.errors.txt
+19 −0 tests/baselines/reference/unusedParameterProperty1.js
+14 −0 tests/baselines/reference/unusedParameterProperty2.errors.txt
+19 −0 tests/baselines/reference/unusedParameterProperty2.js
+9 −0 tests/cases/compiler/unusedParameterProperty1.ts
+9 −0 tests/cases/compiler/unusedParameterProperty2.ts
+20 −8 tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstructorSignature.ts
+23 −0 tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts
+23 −0 tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts
+34 −0 tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts
+31 −0 tests/cases/fourslash/javaScriptClass1.ts
+22 −0 tests/cases/fourslash/javaScriptClass2.ts
+24 −0 tests/cases/fourslash/javaScriptClass3.ts
+22 −0 tests/cases/fourslash/javaScriptClass4.ts
+22 −20 tests/webTestServer.ts
4 changes: 4 additions & 0 deletions bin/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ interface ArrayConstructor {
of<T>(...items: T[]): Array<T>;
}

interface DateConstructor {
new (value: Date): Date;
}

interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
Expand Down
4 changes: 4 additions & 0 deletions bin/lib.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4195,6 +4195,10 @@ interface ArrayConstructor {
of<T>(...items: T[]): Array<T>;
}

interface DateConstructor {
new (value: Date): Date;
}

interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
Expand Down
49 changes: 24 additions & 25 deletions bin/ntypescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2184,52 +2184,45 @@ declare namespace ts {
/** Gets a timestamp with (at least) ms resolution */
const timestamp: () => number;
}
/** Performance measurements for the compiler. */
declare namespace ts.performance {
/**
* Emit a performance event if ts-profiler is connected. This is primarily used
* to generate heap snapshots.
* Marks a performance event.
*
* @param eventName A name for the event.
* @param markName The name of the mark.
*/
function emit(eventName: string): void;
function mark(markName: string): void;
/**
* Increments a counter with the specified name.
* Adds a performance measurement with the specified name.
*
* @param counterName The name of the counter.
* @param measureName The name of the performance measurement.
* @param startMarkName The name of the starting mark. If not supplied, the point at which the
* profiler was enabled is used.
* @param endMarkName The name of the ending mark. If not supplied, the current timestamp is
* used.
*/
function increment(counterName: string): void;
function measure(measureName: string, startMarkName?: string, endMarkName?: string): void;
/**
* Gets the value of the counter with the specified name.
* Gets the number of times a marker was encountered.
*
* @param counterName The name of the counter.
* @param markName The name of the mark.
*/
function getCount(counterName: string): number;
function getCount(markName: string): number;
/**
* Marks the start of a performance measurement.
*/
function mark(): number;
/**
* Adds a performance measurement with the specified name.
* Gets the total duration of all measurements with the supplied name.
*
* @param measureName The name of the performance measurement.
* @param marker The timestamp of the starting mark.
* @param measureName The name of the measure whose durations should be accumulated.
*/
function measure(measureName: string, marker: number): void;
function getDuration(measureName: string): number;
/**
* Iterate over each measure, performing some action
*
* @param cb The action to perform for each measure
*/
function forEachMeasure(cb: (measureName: string, duration: number) => void): void;
/**
* Gets the total duration of all measurements with the supplied name.
*
* @param measureName The name of the measure whose durations should be accumulated.
*/
function getDuration(measureName: string): number;
/** Enables (and resets) performance measurements for the compiler. */
function enable(): void;
/** Disables (and clears) performance measurements for the compiler. */
/** Disables performance measurements for the compiler. */
function disable(): void;
}
declare namespace ts {
Expand Down Expand Up @@ -7071,6 +7064,12 @@ declare namespace ts {
key: string;
message: string;
};
Property_0_is_declared_but_never_used: {
code: number;
category: DiagnosticCategory;
key: string;
message: string;
};
Variable_0_implicitly_has_an_1_type: {
code: number;
category: DiagnosticCategory;
Expand Down
Loading

0 comments on commit c593764

Please sign in to comment.