Skip to content

Commit 1f05e7d

Browse files
committed
Document isDeprecated
1 parent 7b05357 commit 1f05e7d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

spec/grammar.dd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ $(GNAME TraitsKeyword):
470470
$(TRAITS_LINK2 isArithmetic)
471471
$(TRAITS_LINK2 isAssociativeArray)
472472
$(TRAITS_LINK2 isFinalClass)
473+
$(TRAITS_LINK2 isDeprecated)
473474
$(TRAITS_LINK2 isPOD)
474475
$(TRAITS_LINK2 isNested)
475476
$(TRAITS_LINK2 isFloating)

spec/traits.dd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $(GNAME TraitsKeyword):
2525
$(GBLINK isPOD)
2626
$(GBLINK isNested)
2727
$(GBLINK isFuture)
28+
$(GBLINK isDeprecated)
2829
$(GBLINK isFloating)
2930
$(GBLINK isIntegral)
3031
$(GBLINK isScalar)
@@ -201,6 +202,11 @@ $(H2 $(GNAME isFuture))
201202
marked with the `@future` keyword, otherwise `false`. Currently, only
202203
functions and variable declarations have support for the `@future` keyword.)
203204

205+
$(H2 $(GNAME isDeprecated))
206+
207+
$(P Takes one argument. It returns `true` if the argument is a symbol
208+
marked with the `deprecated` keyword, otherwise `false`.)
209+
204210
$(H2 $(GNAME isVirtualFunction))
205211

206212
$(P The same as $(GLINK isVirtualMethod), except

0 commit comments

Comments
 (0)