Skip to content

Commit

Permalink
2016-08-23 [ci skip] Version: 1.201608230008.1+93de502656a7a0cdf30737…
Browse files Browse the repository at this point in the history
…513d29bcb396c79662
  • Loading branch information
basarat committed Aug 23, 2016
1 parent 633615f commit 1dbaad7
Show file tree
Hide file tree
Showing 19 changed files with 821 additions and 450 deletions.
2 changes: 1 addition & 1 deletion TypeScript
Submodule TypeScript updated 72 files
+1 −1 Gulpfile.ts
+127 −107 src/compiler/checker.ts
+4 −0 src/compiler/emitter.ts
+39 −17 src/compiler/parser.ts
+3 −2 src/compiler/program.ts
+5 −7 src/compiler/types.ts
+4 −0 src/compiler/utilities.ts
+6 −6 src/harness/rwcRunner.ts
+5 −19 src/harness/unittests/jsDocParsing.ts
+20 −0 src/harness/unittests/tsconfigParsing.ts
+18 −0 src/harness/unittests/tsserverProjectSystem.ts
+55 −15 src/lib/dom.generated.d.ts
+1 −1 src/lib/webworker.generated.d.ts
+105 −86 src/server/editorServices.ts
+13 −7 src/server/session.ts
+8 −0 src/services/services.ts
+20 −0 src/services/utilities.ts
+2 −4 tests/baselines/reference/arityAndOrderCompatibility01.errors.txt
+2 −4 tests/baselines/reference/arrayLiterals3.errors.txt
+47 −0 tests/baselines/reference/await_unaryExpression_es6.js
+25 −0 tests/baselines/reference/await_unaryExpression_es6.symbols
+37 −0 tests/baselines/reference/await_unaryExpression_es6.types
+56 −0 tests/baselines/reference/await_unaryExpression_es6_1.js
+31 −0 tests/baselines/reference/await_unaryExpression_es6_1.symbols
+46 −0 tests/baselines/reference/await_unaryExpression_es6_1.types
+38 −0 tests/baselines/reference/await_unaryExpression_es6_2.js
+19 −0 tests/baselines/reference/await_unaryExpression_es6_2.symbols
+28 −0 tests/baselines/reference/await_unaryExpression_es6_2.types
+27 −0 tests/baselines/reference/await_unaryExpression_es6_3.errors.txt
+53 −0 tests/baselines/reference/await_unaryExpression_es6_3.js
+3 −3 tests/baselines/reference/castOfAwait.js
+6 −10 tests/baselines/reference/castingTuple.errors.txt
+8 −12 tests/baselines/reference/contextualTypeWithTuple.errors.txt
+2 −4 tests/baselines/reference/contextuallyTypedBindingInitializerNegative.errors.txt
+6 −10 tests/baselines/reference/declarationsAndAssignments.errors.txt
+2 −4 tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt
+8 −16 tests/baselines/reference/destructuringParameterDeclaration2.errors.txt
+2 −4 tests/baselines/reference/destructuringParameterProperties2.errors.txt
+4 −6 tests/baselines/reference/destructuringParameterProperties5.errors.txt
+6 −12 tests/baselines/reference/destructuringVariableDeclaration2.errors.txt
+4 −8 tests/baselines/reference/genericCallWithTupleType.errors.txt
+20 −0 tests/baselines/reference/instantiateContextuallyTypedGenericThis.js
+46 −0 tests/baselines/reference/instantiateContextuallyTypedGenericThis.symbols
+53 −0 tests/baselines/reference/instantiateContextuallyTypedGenericThis.types
+2 −4 tests/baselines/reference/iterableArrayPattern29.errors.txt
+20 −0 tests/baselines/reference/jsdocNeverUndefinedNull.js
+14 −0 tests/baselines/reference/jsdocNeverUndefinedNull.symbols
+14 −0 tests/baselines/reference/jsdocNeverUndefinedNull.types
+2 −4 tests/baselines/reference/optionalBindingParameters1.errors.txt
+2 −4 tests/baselines/reference/optionalBindingParametersInOverloads1.errors.txt
+9 −9 tests/baselines/reference/thisTypeInFunctions.symbols
+35 −35 tests/baselines/reference/thisTypeInFunctions.types
+5 −2 tests/baselines/reference/thisTypeInFunctions2.symbols
+3 −3 tests/baselines/reference/thisTypeInFunctions2.types
+34 −0 tests/baselines/reference/tsxDefaultImports.js
+29 −0 tests/baselines/reference/tsxDefaultImports.symbols
+29 −0 tests/baselines/reference/tsxDefaultImports.types
+6 −12 tests/baselines/reference/tupleTypes.errors.txt
+36 −0 tests/baselines/reference/typingsLookup4.js
+27 −0 tests/baselines/reference/typingsLookup4.symbols
+93 −0 tests/baselines/reference/typingsLookup4.trace.json
+30 −0 tests/baselines/reference/typingsLookup4.types
+11 −0 tests/cases/compiler/instantiateContextuallyTypedGenericThis.ts
+12 −0 tests/cases/compiler/tsxDefaultImports.ts
+17 −0 tests/cases/conformance/async/es6/await_unaryExpression_es6.ts
+21 −0 tests/cases/conformance/async/es6/await_unaryExpression_es6_1.ts
+13 −0 tests/cases/conformance/async/es6/await_unaryExpression_es6_2.ts
+19 −0 tests/cases/conformance/async/es6/await_unaryExpression_es6_3.ts
+11 −0 tests/cases/conformance/jsdoc/jsdocNeverUndefinedNull.ts
+31 −0 tests/cases/conformance/typings/typingsLookup4.ts
+23 −0 tests/cases/fourslash/jsdocNullableUnion.ts
+24 −0 tests/cases/fourslash/syntacticClassificationsDocComment4.ts
70 changes: 55 additions & 15 deletions bin/lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4258,6 +4258,7 @@ interface KeyAlgorithm {
}

interface KeyboardEventInit extends EventModifierInit {
code?: string;
key?: string;
location?: number;
repeat?: boolean;
Expand Down Expand Up @@ -6420,7 +6421,7 @@ declare var DeviceRotationRate: {
new(): DeviceRotationRate;
}

interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent {
interface Document extends Node, GlobalEventHandlers, NodeSelector, DocumentEvent, ParentNode {
/**
* Sets or gets the URL for the current document.
*/
Expand Down Expand Up @@ -7483,7 +7484,7 @@ declare var Document: {
new(): Document;
}

interface DocumentFragment extends Node, NodeSelector {
interface DocumentFragment extends Node, NodeSelector, ParentNode {
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}

Expand Down Expand Up @@ -7552,7 +7553,7 @@ declare var EXT_texture_filter_anisotropic: {
readonly TEXTURE_MAX_ANISOTROPY_EXT: number;
}

interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode {
interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelector, ChildNode, ParentNode {
readonly classList: DOMTokenList;
className: string;
readonly clientHeight: number;
Expand Down Expand Up @@ -7807,6 +7808,16 @@ interface Element extends Node, GlobalEventHandlers, ElementTraversal, NodeSelec
getElementsByClassName(classNames: string): NodeListOf<Element>;
matches(selector: string): boolean;
closest(selector: string): Element | null;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
insertAdjacentElement(position: string, insertedElement: Element): Element | null;
insertAdjacentHTML(where: string, html: string): void;
insertAdjacentText(where: string, text: string): void;
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
Expand Down Expand Up @@ -8578,7 +8589,7 @@ interface HTMLCanvasElement extends HTMLElement {
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, ...args: any[]): string;
toBlob(callback: (result: Blob | null) => void, ... arguments: any[]): void;
toBlob(callback: (result: Blob | null) => void, type?: string, ...arguments: any[]): void;
}

declare var HTMLCanvasElement: {
Expand Down Expand Up @@ -8753,11 +8764,7 @@ interface HTMLElement extends Element {
click(): void;
dragDrop(): boolean;
focus(): void;
insertAdjacentElement(position: string, insertedElement: Element): Element;
insertAdjacentHTML(where: string, html: string): void;
insertAdjacentText(where: string, text: string): void;
msGetInputContext(): MSInputMethodContext;
scrollIntoView(top?: boolean): void;
setActive(): void;
addEventListener(type: "MSContentZoom", listener: (this: this, ev: UIEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
Expand Down Expand Up @@ -10022,6 +10029,7 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
*/
type: string;
import?: Document;
integrity: string;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
}

Expand Down Expand Up @@ -10310,7 +10318,7 @@ interface HTMLMediaElement extends HTMLElement {
*/
canPlayType(type: string): string;
/**
* Fires immediately after the client loads the object.
* Resets the audio or video object and loads a new media resource.
*/
load(): void;
/**
Expand Down Expand Up @@ -10883,6 +10891,7 @@ interface HTMLScriptElement extends HTMLElement {
* Sets or retrieves the MIME type for the associated scripting engine.
*/
type: string;
integrity: string;
}

declare var HTMLScriptElement: {
Expand Down Expand Up @@ -11888,6 +11897,7 @@ interface KeyboardEvent extends UIEvent {
readonly repeat: boolean;
readonly shiftKey: boolean;
readonly which: number;
readonly code: string;
getModifierState(keyArg: string): boolean;
initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
readonly DOM_KEY_LOCATION_JOYSTICK: number;
Expand Down Expand Up @@ -13260,6 +13270,7 @@ interface PerformanceTiming {
readonly responseStart: number;
readonly unloadEventEnd: number;
readonly unloadEventStart: number;
readonly secureConnectionStart: number;
toJSON(): any;
}

Expand Down Expand Up @@ -15537,8 +15548,8 @@ declare var StereoPannerNode: {
interface Storage {
readonly length: number;
clear(): void;
getItem(key: string): string;
key(index: number): string;
getItem(key: string): string | null;
key(index: number): string | null;
removeItem(key: string): void;
setItem(key: string, data: string): void;
[key: string]: any;
Expand Down Expand Up @@ -17079,7 +17090,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
onunload: (this: this, ev: Event) => any;
onvolumechange: (this: this, ev: Event) => any;
onwaiting: (this: this, ev: Event) => any;
readonly opener: Window;
opener: any;
orientation: string | number;
readonly outerHeight: number;
readonly outerWidth: number;
Expand Down Expand Up @@ -17134,6 +17145,9 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
scroll(options?: ScrollToOptions): void;
scrollTo(options?: ScrollToOptions): void;
scrollBy(options?: ScrollToOptions): void;
addEventListener(type: "MSGestureChange", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureDoubleTap", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
addEventListener(type: "MSGestureEnd", listener: (this: this, ev: MSGestureEvent) => any, useCapture?: boolean): void;
Expand Down Expand Up @@ -18161,6 +18175,20 @@ interface ProgressEventInit extends EventInit {
total?: number;
}

interface ScrollOptions {
behavior?: ScrollBehavior;
}

interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}

interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}

interface ClipboardEventInit extends EventInit {
data?: string;
dataType?: string;
Expand Down Expand Up @@ -18204,7 +18232,7 @@ interface EcdsaParams extends Algorithm {
}

interface EcKeyGenParams extends Algorithm {
typedCurve: string;
namedCurve: string;
}

interface EcKeyAlgorithm extends KeyAlgorithm {
Expand Down Expand Up @@ -18340,6 +18368,13 @@ interface JsonWebKey {
k?: string;
}

interface ParentNode {
readonly children: HTMLCollection;
readonly firstElementChild: Element;
readonly lastElementChild: Element;
readonly childElementCount: number;
}

declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;

interface ErrorEventHandler {
Expand Down Expand Up @@ -18410,7 +18445,7 @@ declare var location: Location;
declare var locationbar: BarProp;
declare var menubar: BarProp;
declare var msCredentials: MSCredentials;
declare var name: string;
declare const name: never;
declare var navigator: Navigator;
declare var offscreenBuffering: string | boolean;
declare var onabort: (this: Window, ev: UIEvent) => any;
Expand Down Expand Up @@ -18504,7 +18539,7 @@ declare var ontouchstart: (ev: TouchEvent) => any;
declare var onunload: (this: Window, ev: Event) => any;
declare var onvolumechange: (this: Window, ev: Event) => any;
declare var onwaiting: (this: Window, ev: Event) => any;
declare var opener: Window;
declare var opener: any;
declare var orientation: string | number;
declare var outerHeight: number;
declare var outerWidth: number;
Expand Down Expand Up @@ -18557,6 +18592,9 @@ declare function webkitCancelAnimationFrame(handle: number): void;
declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
declare function scroll(options?: ScrollToOptions): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollBy(options?: ScrollToOptions): void;
declare function toString(): string;
declare function addEventListener(type: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): void;
declare function dispatchEvent(evt: Event): boolean;
Expand Down Expand Up @@ -18712,6 +18750,8 @@ type MSOutboundPayload = MSVideoSendPayload | MSAudioSendPayload;
type RTCIceGatherCandidate = RTCIceCandidate | RTCIceCandidateComplete;
type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
type payloadtype = number;
type ScrollBehavior = "auto" | "instant" | "smooth";
type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
type IDBValidKey = number | string | Date | IDBArrayKey;
type BufferSource = ArrayBuffer | ArrayBufferView;
type MouseWheelEvent = WheelEvent;
Expand Down
Loading

0 comments on commit 1dbaad7

Please sign in to comment.