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

Unified Diff: lib/compiler/implementation/compile_time_constants.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two long lines. Created 8 years, 2 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
Index: lib/compiler/implementation/compile_time_constants.dart
diff --git a/lib/compiler/implementation/compile_time_constants.dart b/lib/compiler/implementation/compile_time_constants.dart
index 8e67ebc37cf07849c6d241007274a212c0ef4bda..552791d99e41a0f4b996bab80ec3012c4ba1aa51 100644
--- a/lib/compiler/implementation/compile_time_constants.dart
+++ b/lib/compiler/implementation/compile_time_constants.dart
@@ -389,7 +389,7 @@ class CompileTimeConstantEvaluator extends Visitor {
// TODO(floitsch): provide better error-messages.
Constant visitSend(Send send) {
Element element = elements[send];
- if (send.isPropertyAccess) {
+ if (send.isPropertyAccessOrTypeReference) {
if (Elements.isStaticOrTopLevelFunction(element)) {
compiler.codegenWorld.staticFunctionsNeedingGetter.add(element);
Constant constant = new FunctionConstant(element);
« no previous file with comments | « no previous file | lib/compiler/implementation/compiler.dart » ('j') | lib/compiler/implementation/lib/js_helper.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698