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

Side by Side Diff: lib/runtime/dart/mirrors.js

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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/runtime/dart/js.js ('k') | lib/src/closure/closure_annotator.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 dart_library.library('dart/mirrors', null, /* Imports */[ 1 dart_library.library('dart/mirrors', null, /* Imports */[
2 "dart/_runtime", 2 "dart/_runtime",
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 'dart/_js_mirrors' 5 'dart/_js_mirrors'
6 ], function(exports, dart, core, _js_mirrors) { 6 ], function(exports, dart, core, _js_mirrors) {
7 'use strict'; 7 'use strict';
8 let dartx = dart.dartx; 8 let dartx = dart.dartx;
9 class MirrorSystem extends core.Object { 9 class MirrorSystem extends core.Object {
10 findLibrary(libraryName) { 10 findLibrary(libraryName) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Comment(text, trimmedText, isDocComment) { 90 Comment(text, trimmedText, isDocComment) {
91 this.text = text; 91 this.text = text;
92 this.trimmedText = trimmedText; 92 this.trimmedText = trimmedText;
93 this.isDocComment = isDocComment; 93 this.isDocComment = isDocComment;
94 } 94 }
95 } 95 }
96 dart.setSignature(Comment, { 96 dart.setSignature(Comment, {
97 constructors: () => ({Comment: [Comment, [core.String, core.String, core.boo l]]}) 97 constructors: () => ({Comment: [Comment, [core.String, core.String, core.boo l]]})
98 }); 98 });
99 class MirrorsUsed extends core.Object { 99 class MirrorsUsed extends core.Object {
100 MirrorsUsed(opts) { 100 MirrorsUsed({symbols = null, targets = null, metaTargets = null, override = null} = {}) {
101 let symbols = opts && 'symbols' in opts ? opts.symbols : null;
102 let targets = opts && 'targets' in opts ? opts.targets : null;
103 let metaTargets = opts && 'metaTargets' in opts ? opts.metaTargets : null;
104 let override = opts && 'override' in opts ? opts.override : null;
105 this.symbols = symbols; 101 this.symbols = symbols;
106 this.targets = targets; 102 this.targets = targets;
107 this.metaTargets = metaTargets; 103 this.metaTargets = metaTargets;
108 this.override = override; 104 this.override = override;
109 } 105 }
110 } 106 }
111 dart.setSignature(MirrorsUsed, { 107 dart.setSignature(MirrorsUsed, {
112 constructors: () => ({MirrorsUsed: [MirrorsUsed, [], {symbols: dart.dynamic, targets: dart.dynamic, metaTargets: dart.dynamic, override: dart.dynamic}]}) 108 constructors: () => ({MirrorsUsed: [MirrorsUsed, [], {symbols: dart.dynamic, targets: dart.dynamic, metaTargets: dart.dynamic, override: dart.dynamic}]})
113 }); 109 });
114 // Exports: 110 // Exports:
(...skipping 16 matching lines...) Expand all
131 exports.FunctionTypeMirror = FunctionTypeMirror; 127 exports.FunctionTypeMirror = FunctionTypeMirror;
132 exports.TypeVariableMirror = TypeVariableMirror; 128 exports.TypeVariableMirror = TypeVariableMirror;
133 exports.TypedefMirror = TypedefMirror; 129 exports.TypedefMirror = TypedefMirror;
134 exports.MethodMirror = MethodMirror; 130 exports.MethodMirror = MethodMirror;
135 exports.VariableMirror = VariableMirror; 131 exports.VariableMirror = VariableMirror;
136 exports.ParameterMirror = ParameterMirror; 132 exports.ParameterMirror = ParameterMirror;
137 exports.SourceLocation = SourceLocation; 133 exports.SourceLocation = SourceLocation;
138 exports.Comment = Comment; 134 exports.Comment = Comment;
139 exports.MirrorsUsed = MirrorsUsed; 135 exports.MirrorsUsed = MirrorsUsed;
140 }); 136 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/js.js ('k') | lib/src/closure/closure_annotator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698