@@ -152,10 +152,10 @@ object MainProxies {
152152 * args,
153153 * "f",
154154 * "Lorem ipsum dolor sit amet consectetur adipiscing elit.",
155- * new scala.annotation.MainAnnotation.ParameterInfos ("x", "S")
155+ * new scala.annotation.MainAnnotation.ParameterInfo ("x", "S")
156156 * .withDocumentation("my param x")
157157 * .withAnnotations(new scala.main.Alias("myX")),
158- * new scala.annotation.MainAnnotation.ParameterInfos ("ys", "T")
158+ * new scala.annotation.MainAnnotation.ParameterInfo ("ys", "T")
159159 * .withDocumentation("all my params y")
160160 * )
161161 *
@@ -170,8 +170,8 @@ object MainProxies {
170170 import tpd ._
171171
172172 /**
173- * Computes the symbols of the default values of the function. Since they cannot be infered anymore at this
174- * point of the compilation, they must be explicitely passed by [[mainProxy ]].
173+ * Computes the symbols of the default values of the function. Since they cannot be inferred anymore at this
174+ * point of the compilation, they must be explicitly passed by [[mainProxy ]].
175175 */
176176 def defaultValueSymbols (scope : Tree , funSymbol : Symbol ): DefaultValueSymbols =
177177 scope match {
@@ -239,7 +239,7 @@ object MainProxies {
239239 * `val args0: () => S = cmd.argGetter[S]("x", None)`
240240 * part of the code.
241241 * For each tuple, the first element is a ref to `args0`, the second is the whole definition, the third
242- * is the ParameterInfos definition associated to this argument.
242+ * is the ParameterInfo definition associated to this argument.
243243 */
244244 def createArgs (mt : MethodType , cmdName : TermName ): List [(Tree , ValDef , Tree )] =
245245 mt.paramInfos.zip(mt.paramNames).zipWithIndex.map {
@@ -254,29 +254,29 @@ object MainProxies {
254254 else (argRef0, formal, defn.MainAnnotationCommand_argGetter )
255255 }
256256
257- // The ParameterInfos
257+ // The ParameterInfo
258258 val parameterInfos = {
259259 val param = paramName.toString
260260 val paramInfosTree = New (
261- TypeTree (defn.MainAnnotationParameterInfos .typeRef),
262- // Arguments to be passed to ParameterInfos ' constructor
261+ TypeTree (defn.MainAnnotationParameterInfo .typeRef),
262+ // Arguments to be passed to ParameterInfo ' constructor
263263 List (List (lit(param), lit(formalType.show)))
264264 )
265265
266266 /*
267- * Assignations to be made after the creation of the ParameterInfos .
267+ * Assignations to be made after the creation of the ParameterInfo .
268268 * For example:
269269 * args0paramInfos.withDocumentation("my param x")
270270 * is represented by the pair
271- * defn.MainAnnotationParameterInfos_withDocumentation -> List(lit("my param x"))
271+ * defn.MainAnnotationParameterInfo_withDocumentation -> List(lit("my param x"))
272272 */
273273 var assignations : List [(Symbol , List [Tree ])] = Nil
274274 for (doc <- documentation.argDocs.get(param))
275- assignations = (defn.MainAnnotationParameterInfos_withDocumentation -> List (lit(doc))) :: assignations
275+ assignations = (defn.MainAnnotationParameterInfo_withDocumentation -> List (lit(doc))) :: assignations
276276
277277 val instanciatedAnnots = paramAnnotations(n).map(instanciateAnnotation).toList
278278 if instanciatedAnnots.nonEmpty then
279- assignations = (defn.MainAnnotationParameterInfos_withAnnotations -> instanciatedAnnots) :: assignations
279+ assignations = (defn.MainAnnotationParameterInfo_withAnnotations -> instanciatedAnnots) :: assignations
280280
281281 assignations.foldLeft[Tree ](paramInfosTree){ case (tree, (setterSym, values)) => Apply (Select (tree, setterSym.name), values) }
282282 }
0 commit comments