1
1
# Augmentation Libraries
2
2
3
3
4
- Version: 1.8 (see [ Changelog] ( #Changelog ) at end)
4
+ Version: 1.9 (see [ Changelog] ( #Changelog ) at end)
5
5
6
6
Augmentation libraries allow splitting a Dart library into files. Unlike part
7
7
files, each augmentation has its [ own imports] [ part imports ] and top-level
@@ -894,6 +894,16 @@ To merge a set of declarations `D` into a namespace:
894
894
expression, an ` augment super ` expression invokes the original
895
895
variable initializer.
896
896
897
+ ## Documentation comments
898
+
899
+ Documentation comments are allowed in all the standard places in augmentation
900
+ libraries. It is up to the tooling to decide how to present such documentation
901
+ comments to the user, but they should generally be considered to be additive,
902
+ and should not completely override the original comment. In other words, it is
903
+ not the expectation that augmentations should duplicate the original
904
+ documentation comments, but instead provide comments that are specific to the
905
+ augmentation.
906
+
897
907
## Deprecating part files
898
908
899
909
Part files have been [ discouraged for many years] [ discourage ] . They are still
@@ -909,6 +919,12 @@ language and our tools.
909
919
910
920
## Changelog
911
921
922
+ ### 1.9
923
+
924
+ * Specify that documentation comments are allowed, and should be considered to
925
+ be additive and not a complete override of the original comment. The rest of
926
+ the behavior is left up to implementations and not specified.
927
+
912
928
### 1.8
913
929
914
930
* Specify that main libraries and thier augmentations must have the same
0 commit comments