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

Unified Diff: lib/src/utils.dart

Issue 1083763003: refactor emitMemberName to be used more consistently (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index ea28a6df6b4c751a9ebb0d332718ab6da4c913d7..1fc1d446d68bbade0a62160b80f6fd7ef266d36a 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -19,10 +19,11 @@ import 'package:analyzer/src/generated/ast.dart'
AstNode,
Expression,
SimpleIdentifier;
+import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/engine.dart'
show ParseDartTask, AnalysisContext;
+import 'package:analyzer/src/generated/resolver.dart' show TypeProvider;
import 'package:analyzer/src/generated/source.dart' show Source;
-import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/analyzer.dart' show parseDirectives;
import 'package:crypto/crypto.dart' show CryptoUtils, MD5;
import 'package:source_span/source_span.dart';
@@ -344,3 +345,6 @@ String resourceOutputPath(Uri resourceUri, Uri entryUri) {
if (pubspec['name'] != 'dev_compiler') return null;
return path.join('dev_compiler', 'runtime', filename);
}
+
+InterfaceType fillDynamicTypeArgs(InterfaceType t, TypeProvider types) =>
+ t.substitute4(new List.filled(t.typeArguments.length, types.dynamicType));
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698