-
Notifications
You must be signed in to change notification settings - Fork 125
Add support for GenericFunctionTypeElementImpl #1497
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
Conversation
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.
Assuming this is ready for review, lgtm.
lib/src/model.dart
Outdated
@@ -1394,16 +1394,26 @@ abstract class GetterSetterCombo implements ModelElement { | |||
|
|||
if (hasGetter && !getter.element.isSynthetic) { | |||
assert(getter.documentationFrom.length == 1); | |||
String docs = getter.documentationFrom.first.computeDocumentationComment; | |||
if (docs != null) buffer.write(docs); | |||
// We have to check against dropTextList here since documentationFrom |
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.
dropTextFrom?
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.
fixed
While moving to the new version of the analyzer is required to make tests pass both in the SDK and in the published package, apparently the alpha version of the analyzer has some sort of bug or change that breaks our AppVeyor build. |
* Initial implementation * Test updates * Rearrange test * Tune up tests to work without new analyzer * Change to alpha analyzer * dartfmt * Use original analyzer version for mainline branch * Review comments
Fix #1495. Allow GenericFunctionTypeElements to work by refactoring ModelFunction into ModelFunctionTyped and ModelFunction classes. Also move to the new version of the analyzer for dartdoc (required to enable tests to pass) and fix the SDK documentation filter so that tests will still pass for the head version of analyzer.