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

Side by Side Diff: lib/src/js/template.dart

Issue 1676463002: Type annotations instead of closure comments. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master Created 4 years, 10 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
« no previous file with comments | « lib/src/js/printer.dart ('k') | lib/src/js/type_printer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of js_ast; 5 part of js_ast;
6 6
7 class TemplateManager { 7 class TemplateManager {
8 Map<String, Template> expressionTemplates = new Map<String, Template>(); 8 Map<String, Template> expressionTemplates = new Map<String, Template>();
9 Map<String, Template> statementTemplates = new Map<String, Template>(); 9 Map<String, Template> statementTemplates = new Map<String, Template>();
10 10
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 820
821 Instantiator visitImportDeclaration(ImportDeclaration node) => 821 Instantiator visitImportDeclaration(ImportDeclaration node) =>
822 throw new UnimplementedError(); 822 throw new UnimplementedError();
823 823
824 Instantiator visitExportDeclaration(ExportDeclaration node) => 824 Instantiator visitExportDeclaration(ExportDeclaration node) =>
825 throw new UnimplementedError(); 825 throw new UnimplementedError();
826 826
827 Instantiator visitExportClause(ExportClause node) => 827 Instantiator visitExportClause(ExportClause node) =>
828 throw new UnimplementedError(); 828 throw new UnimplementedError();
829 829
830 Instantiator visitAnyTypeRef(AnyTypeRef node) =>
831 throw new UnimplementedError();
832
833 Instantiator visitUnknownTypeRef(UnknownTypeRef node) =>
834 throw new UnimplementedError();
835
836 Instantiator visitArrayTypeRef(ArrayTypeRef node) =>
837 throw new UnimplementedError();
838
839 Instantiator visitFunctionTypeRef(FunctionTypeRef node) =>
840 throw new UnimplementedError();
841
842 Instantiator visitGenericTypeRef(GenericTypeRef node) =>
843 throw new UnimplementedError();
844
845 Instantiator visitQualifiedTypeRef(QualifiedTypeRef node) =>
846 throw new UnimplementedError();
847
848 Instantiator visitOptionalTypeRef(OptionalTypeRef node) =>
849 throw new UnimplementedError();
850
851 Instantiator visitRecordTypeRef(RecordTypeRef node) =>
852 throw new UnimplementedError();
853
854 Instantiator visitUnionTypeRef(UnionTypeRef node) =>
855 throw new UnimplementedError();
856
830 @override 857 @override
831 Instantiator visitDestructuredVariable(DestructuredVariable node) { 858 Instantiator visitDestructuredVariable(DestructuredVariable node) {
832 Instantiator makeName = visit(node.name); 859 Instantiator makeName = visit(node.name);
833 Instantiator makeStructure = visit(node.structure); 860 Instantiator makeStructure = visit(node.structure);
834 Instantiator makeDefaultValue = visit(node.defaultValue); 861 Instantiator makeDefaultValue = visit(node.defaultValue);
835 return (arguments) { 862 return (arguments) {
836 return new DestructuredVariable( 863 return new DestructuredVariable(
837 name: makeName(arguments), 864 name: makeName(arguments),
838 structure: makeStructure(arguments), 865 structure: makeStructure(arguments),
839 defaultValue: makeDefaultValue(arguments)); 866 defaultValue: makeDefaultValue(arguments));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 if (count != before) containsInterpolatedNode.add(node); 914 if (count != before) containsInterpolatedNode.add(node);
888 return null; 915 return null;
889 } 916 }
890 917
891 visitInterpolatedNode(InterpolatedNode node) { 918 visitInterpolatedNode(InterpolatedNode node) {
892 containsInterpolatedNode.add(node); 919 containsInterpolatedNode.add(node);
893 if (node.isNamed) holeNames.add(node.nameOrPosition); 920 if (node.isNamed) holeNames.add(node.nameOrPosition);
894 ++count; 921 ++count;
895 } 922 }
896 } 923 }
OLDNEW
« no previous file with comments | « lib/src/js/printer.dart ('k') | lib/src/js/type_printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698