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

fix(parser): support parsing expressions in extend clause #409

Merged
merged 1 commit into from Sep 3, 2017

Conversation

Projects
None yet
3 participants
@dimitryvolkov
Contributor

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() { }
@h13i32maru

Thanks

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

@oravecz

This comment has been minimized.

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