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

Unified Diff: pkg/code_transformers/lib/src/resolver.dart

Issue 211393006: Enables codegen support in polymer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « no previous file | pkg/code_transformers/lib/src/resolver_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/code_transformers/lib/src/resolver.dart
diff --git a/pkg/code_transformers/lib/src/resolver.dart b/pkg/code_transformers/lib/src/resolver.dart
index fac1aac265c2d1175a30c5108a6f2d3a9c6860ea..95f5b1c0c028029f57180975e915236b2acf7daf 100644
--- a/pkg/code_transformers/lib/src/resolver.dart
+++ b/pkg/code_transformers/lib/src/resolver.dart
@@ -6,6 +6,8 @@ library code_transformer.src.resolver;
import 'dart:async';
+import 'package:analyzer/src/generated/ast.dart' show Expression;
+import 'package:analyzer/src/generated/constant.dart' show EvaluationResult;
import 'package:analyzer/src/generated/element.dart';
import 'package:barback/barback.dart';
import 'package:source_maps/refactor.dart';
@@ -68,6 +70,11 @@ abstract class Resolver {
/// potential library name conflicts the name is not guaranteed to be unique.
Element getLibraryFunction(String functionName);
+ /// Gets the result of evaluating the constant [expression] in the context of
+ /// a [library].
+ EvaluationResult evaluateConstant(
+ LibraryElement library, Expression expression);
+
/// Gets an URI appropriate for importing the specified library.
///
/// Returns null if the library cannot be imported via an absolute URI or
« no previous file with comments | « no previous file | pkg/code_transformers/lib/src/resolver_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698