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

Side by Side Diff: pkg/front_end/lib/src/fasta/source/source_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library fasta.source_library_builder; 5 library fasta.source_library_builder;
6 6
7 import 'package:kernel/ast.dart' show ProcedureKind; 7 import 'package:kernel/ast.dart' show ProcedureKind;
8 8
9 import '../../base/resolve_relative_uri.dart' show resolveRelativeUri; 9 import '../../base/resolve_relative_uri.dart' show resolveRelativeUri;
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 parts.add(loader.read(resolvedUri, charOffset, 190 parts.add(loader.read(resolvedUri, charOffset,
191 fileUri: newFileUri, accessor: this)); 191 fileUri: newFileUri, accessor: this));
192 } 192 }
193 193
194 void addPartOf(List<MetadataBuilder> metadata, String name, String uri) { 194 void addPartOf(List<MetadataBuilder> metadata, String name, String uri) {
195 partOfName = name; 195 partOfName = name;
196 partOfUri = uri; 196 partOfUri = uri;
197 } 197 }
198 198
199 void addClass( 199 void addClass(
200 String documentationComment,
200 List<MetadataBuilder> metadata, 201 List<MetadataBuilder> metadata,
201 int modifiers, 202 int modifiers,
202 String name, 203 String name,
203 List<TypeVariableBuilder> typeVariables, 204 List<TypeVariableBuilder> typeVariables,
204 T supertype, 205 T supertype,
205 List<T> interfaces, 206 List<T> interfaces,
206 int charOffset); 207 int charOffset);
207 208
208 void addNamedMixinApplication( 209 void addNamedMixinApplication(
209 List<MetadataBuilder> metadata, 210 List<MetadataBuilder> metadata,
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 /// synthesize type variables on the factory matching the class'. 646 /// synthesize type variables on the factory matching the class'.
646 void addFactoryDeclaration( 647 void addFactoryDeclaration(
647 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { 648 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) {
648 factoryDeclarations[procedure] = factoryDeclaration; 649 factoryDeclarations[procedure] = factoryDeclaration;
649 } 650 }
650 651
651 Scope toScope(Scope parent) { 652 Scope toScope(Scope parent) {
652 return new Scope(members, setters, parent, isModifiable: false); 653 return new Scope(members, setters, parent, isModifiable: false);
653 } 654 }
654 } 655 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_class_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/source_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698