Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

unified-signatures: Convert to function #2411

Merged
merged 1 commit into from
May 6, 2017

Conversation

andy-hanson
Copy link
Contributor

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Overview of change:

Just a refactor.

checkStatements(sourceFile.statements);
return ts.forEachChild(sourceFile, function cb(node: ts.Node): void {
switch (node.kind) {
case ts.SyntaxKind.ModuleBlock:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a case for ts.SyntaxKind.Block?

Copy link
Contributor Author

@andy-hanson andy-hanson Mar 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript won't let you write non-adjacent signatures in a regular block.

@nchen63 nchen63 merged commit 40c1f9a into palantir:master May 6, 2017
@andy-hanson andy-hanson deleted the unified-signatures branch May 6, 2017 04:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants