Skip to content
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

Mixin with a property that's the same name causes an incorrect "Requires" output #359

Closed
cshawaus opened this issue Feb 5, 2015 · 2 comments
Labels

Comments

@cshawaus
Copy link

cshawaus commented Feb 5, 2015

I couldn't find anything on this one, essentially what's happening is the following for example.

@mixin position($position) {
  position: $position;
}

When SassDoc parses this it sees the property position as a requirement instead of looking ahead first and determining the type of execution thus it assumes position requires position even though it doesn't, to get around this for the time being I can prefix the mixin which doesn't bother me too much as seen below.

@mixin t-position($position) {
  position: $position;
}

SassDoc version: 2.0.3
NPM version: 1.4.28

@cshawaus cshawaus changed the title Mixin with a property that's the same name causes an incorrect Requires output Mixin with a property that's the same name causes an incorrect "Requires" output Feb 5, 2015
@KittyGiraudel
Copy link
Member

There is some weird shit going on here. @SassDoc/owners?

FWeinb added a commit that referenced this issue Feb 8, 2015
@FWeinb FWeinb mentioned this issue Feb 8, 2015
@FWeinb
Copy link
Member

FWeinb commented Feb 8, 2015

Fixed on develop. This needs a backport to master.

@FWeinb FWeinb closed this as completed in 8d378ae Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants