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

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

Issue 2997473002: Add documentation comments for enum and enum values. Resynthesize in analyzer. (Closed)
Patch Set: Created 3 years, 4 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.kernel_library_builder; 5 library fasta.kernel_library_builder;
6 6
7 import 'package:front_end/src/fasta/dill/dill_library_builder.dart'; 7 import 'package:front_end/src/fasta/dill/dill_library_builder.dart';
8 import 'package:front_end/src/fasta/combinator.dart' as fasta; 8 import 'package:front_end/src/fasta/combinator.dart' as fasta;
9 import 'package:front_end/src/fasta/export.dart'; 9 import 'package:front_end/src/fasta/export.dart';
10 import 'package:front_end/src/fasta/import.dart'; 10 import 'package:front_end/src/fasta/import.dart';
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 charEndOffset, 646 charEndOffset,
647 nativeMethodName, 647 nativeMethodName,
648 redirectionTarget); 648 redirectionTarget);
649 currentDeclaration.addFactoryDeclaration(procedure, factoryDeclaration); 649 currentDeclaration.addFactoryDeclaration(procedure, factoryDeclaration);
650 addBuilder(name, procedure, charOffset); 650 addBuilder(name, procedure, charOffset);
651 if (nativeMethodName != null) { 651 if (nativeMethodName != null) {
652 addNativeMethod(procedure); 652 addNativeMethod(procedure);
653 } 653 }
654 } 654 }
655 655
656 void addEnum(List<MetadataBuilder> metadata, String name, 656 void addEnum(
657 List<Object> constantNamesAndOffsets, int charOffset, int charEndOffset) { 657 String documentationComment,
658 List<MetadataBuilder> metadata,
659 String name,
660 List<Object> constantNamesAndOffsets,
661 int charOffset,
662 int charEndOffset) {
658 addBuilder( 663 addBuilder(
659 name, 664 name,
660 new KernelEnumBuilder(metadata, name, constantNamesAndOffsets, this, 665 new KernelEnumBuilder(documentationComment, metadata, name,
661 charOffset, charEndOffset), 666 constantNamesAndOffsets, this, charOffset, charEndOffset),
662 charOffset); 667 charOffset);
663 } 668 }
664 669
665 void addFunctionTypeAlias( 670 void addFunctionTypeAlias(
666 List<MetadataBuilder> metadata, 671 List<MetadataBuilder> metadata,
667 String name, 672 String name,
668 List<TypeVariableBuilder> typeVariables, 673 List<TypeVariableBuilder> typeVariables,
669 covariant KernelFunctionTypeBuilder type, 674 covariant KernelFunctionTypeBuilder type,
670 int charOffset) { 675 int charOffset) {
671 KernelFunctionTypeAliasBuilder typedef = new KernelFunctionTypeAliasBuilder( 676 KernelFunctionTypeAliasBuilder typedef = new KernelFunctionTypeAliasBuilder(
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 mixinApplicationClasses.putIfAbsent(name, () => builder); 952 mixinApplicationClasses.putIfAbsent(name, () => builder);
948 if (existing != builder) { 953 if (existing != builder) {
949 part.scope.local.remove(name); 954 part.scope.local.remove(name);
950 } 955 }
951 }); 956 });
952 super.includePart(part); 957 super.includePart(part);
953 nativeMethods.addAll(part.nativeMethods); 958 nativeMethods.addAll(part.nativeMethods);
954 boundlessTypeVariables.addAll(part.boundlessTypeVariables); 959 boundlessTypeVariables.addAll(part.boundlessTypeVariables);
955 } 960 }
956 } 961 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698