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

statically unreachable code should be grayed out (or other visual clue) #269

Closed
timotheecour opened this issue Apr 9, 2013 · 1 comment

Comments

@timotheecour
Copy link

I think visualD does this to some extent.
Examples:

version(none){
...
}
other examples:
static if(false){}
version(myversion){} //when not given in command line version identifier
version(OSX){} // when on linux

More complex case (could be supported later):
static if(some_CT_condition){} // upon rebuild, evaluate those
static if(isDynamicArray!T) {} //gray out if no code path leads to true

@aBothe
Copy link
Owner

aBothe commented Mar 30, 2014

For now, only version and debug conditions will be checked due to performance reasons.

aBothe pushed a commit to aBothe/D_Parser that referenced this issue Mar 31, 2014
@aBothe aBothe closed this as completed Mar 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants