GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Fork
: 0
johnpearcey
/
dub_jkp
Browse code
Let Dependency.toString() print if an optional dependency is marked as default.
master
1 parent
dfbf66a
commit
adbd019836af9b4fcd6c98bbbaddd1cbf302ae9e
Sönke Ludwig
authored
on 2 Jun 2016
Patch
Unified
Split
Showing
1 changed file
+4
-4
■
■
■
■
■
source/dub/dependency.d
Ignore Space
Show notes
View
8
■
■
■
■
■
source/dub/dependency.d
*/
string
toString
()()
const
{
auto
ret
=
versionSpec
;
if
(
optional
)
ret
~=
" (optional)"
;
if
(
optional
)
{
if
(
default_
)
ret
~=
" (optional, default)"
;
else
ret
~=
" (optional)"
;
}
if
(!
path
.
empty
)
ret
~=
" @"
~
path
.
toNativeString
();
return
ret
;
}
Show line notes below