Skip to content

Commit b021d84

Browse files
kallentuCommit Queue
authored andcommitted
[parser] Update comments for primary constructor listeners.
Small PR to just update some comments that changed after Johnni's parser CL https://dart-review.googlesource.com/c/sdk/+/455081 These two listener methods are called for enums, classes and extension types, not for only extension types. Bug: #61699 Change-Id: I9935bdb071b01179d59d96a65fd3b675d3c4cfe4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/457521 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Kallen Tu <[email protected]>
1 parent 571bdd6 commit b021d84

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/_fe_analyzer_shared/lib/src/parser/listener.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ abstract class Listener implements UnescapeErrorListener {
315315
logEvent('ExtensionTypeDeclaration');
316316
}
317317

318-
/// Handle the start of a primary constructor declaration, currently only
319-
/// occurring in extension type declarations.
318+
/// Handle the start of a primary constructor declaration.
320319
void beginPrimaryConstructor(Token beginToken) {
321320
logEvent('PrimaryConstructor');
322321
}
@@ -340,8 +339,7 @@ abstract class Listener implements UnescapeErrorListener {
340339
logEvent('PrimaryConstructor');
341340
}
342341

343-
/// Handle the omission of a primary constructor declaration. Currently only
344-
/// occurring in extension type declarations.
342+
/// Handle the omission of a primary constructor declaration.
345343
void handleNoPrimaryConstructor(
346344
Token token,
347345
Token? constKeyword,

0 commit comments

Comments
 (0)