Skip to content

Commit 62c12ad

Browse files
committed
format
1 parent cd5f113 commit 62c12ad

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/src/model/parameter.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class Parameter extends ModelElement with HasNoPage {
2424
Parameter(this.element2, super.library, super.packageGraph,
2525
{ParameterMember? super.originalMember});
2626

27-
String? get defaultValue => hasDefaultValue ? element2.defaultValueCode : null;
27+
String? get defaultValue =>
28+
hasDefaultValue ? element2.defaultValueCode : null;
2829

2930
@override
3031
ModelElement? get enclosingElement {
@@ -59,10 +60,10 @@ class Parameter extends ModelElement with HasNoPage {
5960
for (Element2 e = enclosingElement;
6061
e.enclosingElement2 != null;
6162
e = e.enclosingElement2!) {
62-
enclosingName = e.name3;
63+
enclosingName = e.lookupName;
6364
if (enclosingName != null && enclosingName.isNotEmpty) break;
6465
}
65-
}
66+
}
6667
return '$enclosingName-param-$name';
6768
}
6869

test/templates/field_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ class C {
154154
var f1Lines = readLines(['lib', 'C', 'f1.html']);
155155
f1Lines.expectMainContentContainsAllInOrder(
156156
[
157-
// matches('<section class="multi-line-signature">'),
158-
// matches('set'),
159-
// matches('<span class="name ">f1</span>'),
157+
matches('<section class="multi-line-signature">'),
158+
matches('set'),
159+
matches('<span class="name ">f1</span>'),
160160
matches(r'<span class="signature">\('
161161
'<wbr><span class="parameter" id="f1=-param-value">'
162162
'<span class="type-annotation">int</span> '

0 commit comments

Comments
 (0)