Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart

Issue 2977133002: Add documentationComment for Class to Kernel. Parse it. Resynthesize in Analyzer. (Closed)
Patch Set: Skip kDocumentationCommentIndex, don't store it. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
index 143330b6eddda4c00bca9639a770b00720e600c3..1bce990241a61b97bfc944e19630fefc6243730c 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
@@ -74,6 +74,7 @@ class KernelEnumBuilder extends SourceClassBuilder
final KernelNamedTypeBuilder listType;
KernelEnumBuilder.internal(
+ String documentationComment,
List<MetadataBuilder> metadata,
String name,
Scope scope,
@@ -87,8 +88,8 @@ class KernelEnumBuilder extends SourceClassBuilder
this.stringType,
LibraryBuilder parent,
int charOffset)
- : super(metadata, 0, name, null, null, null, scope, constructors, parent,
- null, charOffset, cls);
+ : super(documentationComment, metadata, 0, name, null, null, null, scope,
+ constructors, parent, null, charOffset, cls);
factory KernelEnumBuilder(
List<MetadataBuilder> metadata,
@@ -186,6 +187,7 @@ class KernelEnumBuilder extends SourceClassBuilder
}
MapLiteral toStringMap = new MapLiteral(toStringEntries, isConst: true);
KernelEnumBuilder enumBuilder = new KernelEnumBuilder.internal(
+ null,
metadata,
name,
new Scope(members, null, parent.scope, isModifiable: false),
« no previous file with comments | « pkg/front_end/lib/src/fasta/fasta.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698