-
Notifications
You must be signed in to change notification settings - Fork 29
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
Inspect magicpen instances as a series of function calls #200
Conversation
…imply appending its value. I ran into troubles with testing error messages because the pen instances being tested were appended to the output despite being in a different format.
This could also be added to magicpen itself as a core style, or maybe be put into a |
Funny I had the exact same though, but discarded it because I thought it would be too hard to compare the output. But I guess this is the best we can do and it would definitely be helpful for simple cases. |
if (isTopLevel && !pen.isEmpty() && (pen.format === this.format || !pen.format)) { | ||
this.sp().commentBlock(pen); | ||
} | ||
}); | ||
}; |
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.
I would prefer to split this into functions that would handle a line and a function that handle multiple lines. That would remove some of the nesting.
It is actually pretty helpful with the actual output on right side. |
Tried splitting it up. |
Thanks that is a bit more clean :-) |
Inspect magicpen instances as a series of function calls
No description provided.