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

Unified Diff: frog/member.dart

Issue 9107031: fix Library*NegativeTests (and a couple Prefix ones by accident) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebased Created 8 years, 11 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: frog/member.dart
diff --git a/frog/member.dart b/frog/member.dart
index 9c0a0e966bcddc9c596913e5706d51100dc705f4..d0c7e64840df33391d958e0e853cc9928b79295f 100644
--- a/frog/member.dart
+++ b/frog/member.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -98,7 +98,7 @@ class Member extends Element {
Library get library() => declaringType.library;
- bool get isPrivate() => name.startsWith('_');
+ bool get isPrivate() => name !== null && name.startsWith('_');
bool get isConstructor() => false;
bool get isField() => false;
@@ -227,7 +227,7 @@ class TypeMember extends Member {
: super(type.name, type.library.topType),
this.type = type;
- SourceSpan get span() => type.definition.span;
+ SourceSpan get span() => type.definition === null ? null : type.definition.span;
Jennifer Messerly 2012/01/12 01:58:33 long line
bool get isStatic() => true;

Powered by Google App Engine
This is Rietveld 408576698