Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Mar 14, 2018

Lets us avoid a lot of casts (that were also invalid with --strictNullChecks).

@ghost ghost requested a review from sandersn March 14, 2018 17:29
@ghost ghost force-pushed the getFirstJSDocTag branch 2 times, most recently from 42dfc16 to 8e6542d Compare March 14, 2018 17:30
@ghost ghost force-pushed the getFirstJSDocTag branch from 8e6542d to 07aae7d Compare March 14, 2018 17:33
}

/** Gets the JSDoc augments tag for the node if present */
export function getJSDocAugmentsTag(node: Node): JSDocAugmentsTag | undefined {
Copy link
Author

Choose a reason for hiding this comment

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

@sandersn These functions are so simple now, and only used in a few places, maybe we should just inline them?

Copy link
Member

Choose a reason for hiding this comment

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

Aren't they part of the public API? Otherwise I'd say yes.

Copy link
Author

Choose a reason for hiding this comment

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

D'oh, it's all public.

@ghost ghost merged commit 5f1668e into master Mar 14, 2018
@ghost ghost deleted the getFirstJSDocTag branch March 14, 2018 19:40
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This pull request was closed.
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.

1 participant