-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support @throws tag #305
Support @throws tag #305
Conversation
CLA is valid! |
@@ -182,6 +182,7 @@ YUI.add('docparser', function (Y) { | |||
'augments': 'uses', // YUI convention for prototype mixins | |||
'depreciated': 'deprecated', // subtle difference | |||
'desciption': 'description', // shouldn't need the @description tag at all | |||
'exception': 'throws', // we may want standalone inner functions at some point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't make any sense. Copy/paste issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I just fixed.
I'll merge this in the next week if I have no feedback this week. And I'm planning release the next version with this in the next week. /cc @juandopazo @caridy |
@@ -191,7 +192,8 @@ YUI.add('docparser', function (Y) { | |||
'parma': 'param', // typo | |||
'propery': 'property', // typo | |||
'prop': 'property', // probably meant property | |||
'returns': 'return' // need to standardize on one or the other | |||
'returns': 'return', // need to standardize on one or the other | |||
'throw': 'throws' // need to standardize on one or the other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need throw
or exception
unless users tell us it's a common mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, OK! Moved out.
Updated for review from @juandopazo. |
LGTM! |
Thanks a lot. |
It works similar with the
@return
tag. This means that a type is optional. An actual example is like the following. And, this resolves #135 finally.This is a new feature, so I wish I could get any reviewers.
/cc @juandopazo @caridy