Skip to content

Commit

Permalink
Version 3.0.0-400.0.dev
Browse files Browse the repository at this point in the history
Merge 489aefb into dev
  • Loading branch information
Dart CI committed Apr 3, 2023
2 parents 8296054 + 489aefb commit ca96c7c
Show file tree
Hide file tree
Showing 60 changed files with 2,647 additions and 21 deletions.
11 changes: 1 addition & 10 deletions pkg/_fe_analyzer_shared/lib/src/parser/parser_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9968,7 +9968,6 @@ class Parser {
break;
}

// TODO(paulberry): test this error recovery logic
// Recovery
if (!looksLikeLiteralEntry(next)) {
if (beginToken.endGroup!.isSynthetic) {
Expand Down Expand Up @@ -10028,7 +10027,6 @@ class Parser {
token = parseExpression(token);
Token colon = token.next!;
if (!optional(':', colon)) {
// TODO(paulberry): test this error recovery logic
// Recover from a missing colon by inserting one.
colon = rewriteAndRecover(
token,
Expand All @@ -10051,7 +10049,6 @@ class Parser {
}

if (comma == null) {
// TODO(paulberry): test this error recovery logic
// Recovery
if (looksLikeLiteralEntry(next)) {
// If this looks like the start of an expression,
Expand Down Expand Up @@ -10098,14 +10095,12 @@ class Parser {
break;
}
Token? colon = null;
// TODO(paulberry): test error recovery
if (optional(':', next)) {
wasRecord = true;
wasValidRecord = true;
listener.handleNoName(token);
colon = token = next;
} else if (optional(':', next.next!) || /* recovery */
optional(':', next)) {
} else if (optional(':', next.next!)) {
// Record with named expression.
wasRecord = true;
token = ensureIdentifier(
Expand All @@ -10122,8 +10117,6 @@ class Parser {
}
++count;
if (!optional(',', next)) {
// TODO(paulberry): make sure to test the error case where there's a
// colon but it's not a record.
break;
} else {
// It is a comma, i.e. it's a record.
Expand Down Expand Up @@ -10189,7 +10182,6 @@ class Parser {
token = next;
break;
}
// TODO(paulberry): test error recovery
// Recovery
if (looksLikeExpressionStart(next)) {
// If this looks like the start of an expression,
Expand Down Expand Up @@ -10353,7 +10345,6 @@ class Parser {
}

if (comma == null) {
// TODO(paulberry): test this error recovery logic
// Recovery
if (looksLikePatternStart(next)) {
// If this looks like the start of a pattern, then report an error,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,12 @@ abstract class BaseDeprecatedMemberUseVerifier {

String displayName = element!.displayName;
if (element is ConstructorElement) {
// TODO(jwren) We should modify ConstructorElement.getDisplayName(),
// TODO(jwren) We should modify ConstructorElement.displayName,
// or have the logic centralized elsewhere, instead of doing this logic
// here.
displayName = element.enclosingElement.displayName;
if (element.displayName.isNotEmpty) {
displayName = "$displayName.${element.displayName}";
}
displayName = element.name == ''
? '${element.displayName}.new'
: element.displayName;
} else if (element is LibraryElement) {
displayName = element.definingCompilationUnit.source.uri.toString();
} else if (node is MethodInvocation &&
Expand Down
Loading

0 comments on commit ca96c7c

Please sign in to comment.