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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_library_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_library_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
index d16d0af2b06fe1cf540f14b253d0fff913030d9a..ab474f7342e1a2886686f9ac71d668136dea0961 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart
@@ -114,6 +114,7 @@ class KernelLibraryBuilder
}
void addClass(
+ String documentationComment,
List<MetadataBuilder> metadata,
int modifiers,
String className,
@@ -138,6 +139,7 @@ class KernelLibraryBuilder
Scope constructorScope =
new Scope(constructors, null, null, isModifiable: false);
ClassBuilder cls = new SourceClassBuilder(
+ documentationComment,
metadata,
modifiers,
className,
@@ -213,7 +215,8 @@ class KernelLibraryBuilder
KernelTypeBuilder applyMixin(
KernelTypeBuilder supertype, KernelTypeBuilder mixin, String signature,
- {List<MetadataBuilder> metadata,
+ {String documentationComment,
+ List<MetadataBuilder> metadata,
String name,
List<TypeVariableBuilder> typeVariables,
int modifiers: abstractMask,
@@ -235,6 +238,7 @@ class KernelLibraryBuilder
}
if (builder == null) {
builder = new SourceClassBuilder(
+ documentationComment,
metadata,
modifiers,
name,
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698