Skip to content

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

Merged
merged 8 commits into from
Sep 8, 2017

Conversation

jcollins-g
Copy link
Contributor

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.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Sep 8, 2017
Copy link
Member

@devoncarew devoncarew left a 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.

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

dropTextFrom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@jcollins-g
Copy link
Contributor Author

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.

@jcollins-g jcollins-g merged commit d6ab8c2 into master Sep 8, 2017
jcollins-g added a commit that referenced this pull request Sep 8, 2017
* 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
@jcollins-g jcollins-g deleted the fix-new-elementimpl branch September 12, 2017 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for GenericFunctionTypeElementImpl
3 participants