Roll Dart SDK from 441b4d802246 to 1627a0801f8c (1 revision) (flutter/engine#36351)

This commit is contained in:
Kaushik Iska
2022-09-22 12:22:34 -04:00
committed by GitHub
parent 136cbcc67f
commit 2a83c51e95
2 changed files with 4 additions and 4 deletions

4
DEPS
View File

@@ -43,7 +43,7 @@ vars = {
# Dart is: https://github.com/dart-lang/sdk/blob/main/DEPS.
# You can use //tools/dart/create_updated_flutter_deps.py to produce
# updated revision list of existing dependencies.
'dart_revision': '441b4d8022467b5c6504cfdca2bd5d4769c6d4a3',
'dart_revision': '1627a0801f8c4a2e00066728e75e969f6603d633',
# WARNING: DO NOT EDIT MANUALLY
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -246,7 +246,7 @@ deps = {
Var('dart_git') + '/logging.git@f5d64426af1b48966a4b33e97927c9fc456960b6',
'src/third_party/dart/third_party/pkg/markdown':
Var('dart_git') + '/markdown.git@32a94505ded3863b82310b86344a003a19c00341',
Var('dart_git') + '/markdown.git@87e4c689342d5bbaa84ba2999abf0bff503979be',
'src/third_party/dart/third_party/pkg/matcher':
Var('dart_git') + '/matcher.git@6a9b83bbd73e50df2058b3e8e4aa301df49569c6',

View File

@@ -36,11 +36,11 @@ List<String> getDartClassFields({
final RegExp fieldExp = RegExp(r'_k(\w*)Index');
final List<String> fields = <String>[];
for (final CompilationUnitMember unitMember in result.unit.declarations) {
if (unitMember is ClassDeclaration && unitMember.name2.lexeme == className) {
if (unitMember is ClassDeclaration && unitMember.name.lexeme == className) {
for (final ClassMember classMember in unitMember.members) {
if (classMember is FieldDeclaration) {
for (final VariableDeclaration field in classMember.fields.variables) {
final String fieldName = field.name2.lexeme;
final String fieldName = field.name.lexeme;
final RegExpMatch? match = fieldExp.firstMatch(fieldName);
if (match != null) {
fields.add(match.group(1)!);