-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/// <reference path="types.ts" /> | ||
/// <reference path="core.ts" /> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rbuckton
Author
Member
|
||
|
||
module ts { | ||
export interface ReferencePathMatchResult { | ||
|
@@ -575,6 +575,17 @@ module ts { | |
return (<CallExpression>node).expression; | ||
} | ||
|
||
function getConstructorWithBody(member: ClassElement): ConstructorDeclaration { | ||
This comment has been minimized.
Sorry, something went wrong.
JsonFreeman
Contributor
|
||
if (member.kind === SyntaxKind.Constructor && nodeIsPresent((<ConstructorDeclaration>member).body)) { | ||
return <ConstructorDeclaration>member; | ||
} | ||
return undefined; | ||
} | ||
|
||
export function getFirstConstructorWithBody(node: ClassDeclaration): ConstructorDeclaration { | ||
return forEach(node.members, getConstructorWithBody); | ||
} | ||
|
||
export function isExpression(node: Node): boolean { | ||
switch (node.kind) { | ||
case SyntaxKind.ThisKeyword: | ||
|
@CyrusNajmabadi is this correct?