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

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

Issue 2990873002: Add Member.documentationComment and use it to resynthesize documentation from Kernel. (Closed)
Patch Set: 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 5f9ef6bc0b7d43312d91918d4eaea26311079ea0..eb98e56e3ff80a12c2e1757d2c9d0fd60c13cc9c 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
@@ -502,6 +502,7 @@ class KernelLibraryBuilder
@override
void addField(
+ String documentationComment,
List<MetadataBuilder> metadata,
int modifiers,
KernelTypeBuilder type,
@@ -511,8 +512,16 @@ class KernelLibraryBuilder
bool hasInitializer) {
addBuilder(
name,
- new KernelFieldBuilder(metadata, type, name, modifiers, this,
- charOffset, initializerTokenForInference, hasInitializer),
+ new KernelFieldBuilder(
+ documentationComment,
+ metadata,
+ type,
+ name,
+ modifiers,
+ this,
+ charOffset,
+ initializerTokenForInference,
+ hasInitializer),
charOffset);
}
@@ -541,6 +550,7 @@ class KernelLibraryBuilder
}
void addProcedure(
+ String documentationComment,
List<MetadataBuilder> metadata,
int modifiers,
KernelTypeBuilder returnType,
@@ -562,6 +572,7 @@ class KernelLibraryBuilder
if (constructorName != null) {
name = constructorName;
procedure = new KernelConstructorBuilder(
+ documentationComment,
metadata,
modifiers & ~abstractMask,
returnType,
@@ -575,6 +586,7 @@ class KernelLibraryBuilder
nativeMethodName);
} else {
procedure = new KernelProcedureBuilder(
+ documentationComment,
metadata,
modifiers,
returnType,
@@ -596,6 +608,7 @@ class KernelLibraryBuilder
}
void addFactoryMethod(
+ String documentationComment,
List<MetadataBuilder> metadata,
int modifiers,
ConstructorReferenceBuilder constructorNameReference,
@@ -618,6 +631,7 @@ class KernelLibraryBuilder
}
assert(constructorNameReference.suffix == null);
KernelProcedureBuilder procedure = new KernelProcedureBuilder(
+ documentationComment,
metadata,
staticMask | modifiers,
returnType,

Powered by Google App Engine
This is Rietveld 408576698