Index: pkg/front_end/lib/src/fasta/source/source_library_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart |
index 56ae8436f571adc00c16e43f391b57c727d958c7..7b8293d0325bea62392edc89ad08d7de32e084b4 100644 |
--- a/pkg/front_end/lib/src/fasta/source/source_library_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/source/source_library_builder.dart |
@@ -184,10 +184,11 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R> |
String name, int charOffset); |
void addFields(List<MetadataBuilder> metadata, int modifiers, T type, |
- List<String> names) { |
- for (String name in names) { |
- // TODO(ahe): Get charOffset of name. |
- addField(metadata, modifiers, type, name, -1); |
+ List<Object> namesAndOffsets) { |
+ for (int i = 0; i < namesAndOffsets.length; i += 2) { |
+ String name = namesAndOffsets[i]; |
+ int charOffset = namesAndOffsets[i + 1]; |
+ addField(metadata, modifiers, type, name, charOffset); |
} |
} |
@@ -207,7 +208,7 @@ abstract class SourceLibraryBuilder<T extends TypeBuilder, R> |
{bool isTopLevel}); |
void addEnum(List<MetadataBuilder> metadata, String name, |
- List<String> constants, int charOffset, int charEndOffset); |
+ List<Object> constantNamesAndOffsets, int charOffset, int charEndOffset); |
void addFunctionTypeAlias( |
List<MetadataBuilder> metadata, |