Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'transforms-transformer-es6' into transforms-transformer…
…-module
  • Loading branch information
rbuckton committed Feb 23, 2016
commit 0b64048192a9cd44f4c2750b20d234b6a5c5216a
7 changes: 0 additions & 7 deletions src/compiler/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,13 +876,6 @@ namespace ts {
);
}

export function createHasOwnProperty(target: LeftHandSideExpression, propertyName: Expression) {
return createCall(
createPropertyAccess(target, "hasOwnProperty"),
[propertyName]
);
}

function createObjectCreate(prototype: Expression) {
return createCall(
createPropertyAccess(createIdentifier("Object"), "create"),
Expand Down
12 changes: 4 additions & 8 deletions src/compiler/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,8 @@ namespace ts {
* @param to The destination array.
* @param from The source Node or NodeArrayNode.
*/
export function addNode<T extends Node>(to: T[], from: OneOrMany<T>, startOnNewLine?: boolean): T[] {
export function addNode<T extends Node>(to: T[], from: OneOrMany<T>, startOnNewLine?: boolean) {
addNodeWorker(to, from, startOnNewLine, /*test*/ undefined)
return to;
}

/**
Expand All @@ -696,9 +695,8 @@ namespace ts {
* @param to The destination NodeArray.
* @param from The source array of Node or NodeArrayNode.
*/
export function addNodes<T extends Node>(to: T[], from: OneOrMany<T>[], startOnNewLine?: boolean): T[] {
export function addNodes<T extends Node>(to: T[], from: OneOrMany<T>[], startOnNewLine?: boolean) {
addNodesWorker(to, from, startOnNewLine, /*test*/ undefined);
return to;
}

/**
Expand All @@ -707,9 +705,8 @@ namespace ts {
* @param to The destination array.
* @param from The source Node or NodeArrayNode.
*/
export function addLine<T extends Node>(to: T[], from: OneOrMany<T>): T[] {
export function addLine<T extends Node>(to: T[], from: OneOrMany<T>) {
addNodeWorker(to, from, /*addOnNewLine*/ true, /*test*/ undefined);
return to;
}

/**
Expand All @@ -718,9 +715,8 @@ namespace ts {
* @param to The destination NodeArray.
* @param from The source array of Node or NodeArrayNode.
*/
export function addLines<T extends Node>(to: T[], from: OneOrMany<T>[]): T[] {
export function addLines<T extends Node>(to: T[], from: OneOrMany<T>[]) {
addNodesWorker(to, from, /*addOnNewLine*/ true, /*test*/ undefined);
return to;
}

function addNodeWorker<T extends Node>(to: T[], from: OneOrMany<T>, addOnNewLine: boolean, test: (node: Node) => boolean) {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.