refactor: Update multiple ctors warning with a space and grammar
Add a space before the word "using" and make spelling of constructor/ctor consistent Closes #3923
This commit is contained in:
parent
947bf11cb6
commit
eb2c15786e
|
@ -61,8 +61,8 @@ class ReflectionInfoVisitor extends RecursiveAstVisitor<ReflectionInfoModel> {
|
||||||
if (numCtorsFound > 1) {
|
if (numCtorsFound > 1) {
|
||||||
var ctorName = ctor.name;
|
var ctorName = ctor.name;
|
||||||
if (ctorName != null) {
|
if (ctorName != null) {
|
||||||
logger.warning('Found ${numCtorsFound} ctors for class ${node.name},'
|
logger.warning('Found ${numCtorsFound} constructors for class '
|
||||||
'Using constructor ${ctorName}.');
|
'${node.name}; using constructor ${ctorName}.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ctor;
|
return ctor;
|
||||||
|
|
Loading…
Reference in New Issue