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

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: 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 if (count != before) containsInterpolatedNode.add(node); 910 if (count != before) containsInterpolatedNode.add(node);
884 return null; 911 return null;
885 } 912 }
886 913
887 visitInterpolatedNode(InterpolatedNode node) { 914 visitInterpolatedNode(InterpolatedNode node) {
888 containsInterpolatedNode.add(node); 915 containsInterpolatedNode.add(node);
889 if (node.isNamed) holeNames.add(node.nameOrPosition); 916 if (node.isNamed) holeNames.add(node.nameOrPosition);
890 ++count; 917 ++count;
891 } 918 }
892 } 919 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698