@@ -34,7 +34,7 @@ object MainAnnotation:
34
34
/** The docstring of the parameter. Defaults to None. */
35
35
val documentation : Option [String ],
36
36
/** The default value that the parameter has. Defaults to None. */
37
- val defaultValueOpt : Option [() => T ],
37
+ val defaultValueGetterOpt : Option [() => T ],
38
38
/** The ParameterAnnotations associated with the parameter. Defaults to Seq.empty. */
39
39
val annotations : Seq [ParameterAnnotation ],
40
40
) {
@@ -46,10 +46,10 @@ object MainAnnotation:
46
46
new ParameterInfos (name, typeName, documentation, Some (() => defaultValue), annotations)
47
47
48
48
def withDocumentation (doc : String ): ParameterInfos [T ] =
49
- new ParameterInfos (name, typeName, Some (doc), defaultValueOpt , annotations)
49
+ new ParameterInfos (name, typeName, Some (doc), defaultValueGetterOpt , annotations)
50
50
51
51
def withAnnotations (annots : ParameterAnnotation * ): ParameterInfos [T ] =
52
- new ParameterInfos (name, typeName, documentation, defaultValueOpt , annots)
52
+ new ParameterInfos (name, typeName, documentation, defaultValueGetterOpt , annots)
53
53
54
54
override def toString : String = s " $name: $typeName"
55
55
}
0 commit comments