Skip to content

Conversation

@dimitryvolkov
Copy link
Contributor

@dimitryvolkov dimitryvolkov commented Mar 29, 2017

Currently esdoc fails for code containing a call expression in 'extends' clauses which is a supported feature and is popular with mixins.

Failing code:

function mix() {
	return {
		with: function () {
			return class { };
		}
	};
}
class Test extends mix().with() { }

Copy link
Member

@h13i32maru h13i32maru left a comment

Choose a reason for hiding this comment

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

Thanks

@h13i32maru h13i32maru merged commit 33d9c39 into esdoc:master Sep 3, 2017
@oravecz
Copy link

oravecz commented Sep 5, 2017

What should this PR allow? I didn't see any change in my web component docs which are using mixins using a different approach.

Should this PR allow the identifications of mixins when implemented such as these techniques?

class Test extends Mixin1( Mixin2( HTMLElement ) )

or a Composable implementation

class Test extends Composable(HTMLElement).compose( Mixin1, Mixin2 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants