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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 12033049: Disallow mixing in classes that use 'super'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge from master. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.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 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library elements; 5 library elements;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import 'modelx.dart'; 9 import 'modelx.dart';
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 bool hasFixedBackendName(); 193 bool hasFixedBackendName();
194 String fixedBackendName(); 194 String fixedBackendName();
195 195
196 bool isAbstract(Compiler compiler); 196 bool isAbstract(Compiler compiler);
197 bool isForeign(Compiler compiler); 197 bool isForeign(Compiler compiler);
198 198
199 void addMetadata(MetadataAnnotation annotation); 199 void addMetadata(MetadataAnnotation annotation);
200 void setNative(String name); 200 void setNative(String name);
201 void setFixedBackendName(String name); 201 void setFixedBackendName(String name);
202
202 Scope buildScope(); 203 Scope buildScope();
203 } 204 }
204 205
205 class Elements { 206 class Elements {
206 static bool isUnresolved(Element e) { 207 static bool isUnresolved(Element e) {
207 return e == null || e.isErroneous(); 208 return e == null || e.isErroneous();
208 } 209 }
209 static bool isErroneousElement(Element e) => e != null && e.isErroneous(); 210 static bool isErroneousElement(Element e) => e != null && e.isErroneous();
210 211
211 static bool isClass(Element e) => e != null && e.kind == ElementKind.CLASS; 212 static bool isClass(Element e) => e != null && e.kind == ElementKind.CLASS;
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 Element get annotatedElement; 762 Element get annotatedElement;
762 int get resolutionState; 763 int get resolutionState;
763 Token get beginToken; 764 Token get beginToken;
764 765
765 // TODO(kasperl): Try to get rid of these. 766 // TODO(kasperl): Try to get rid of these.
766 void set annotatedElement(Element value); 767 void set annotatedElement(Element value);
767 void set resolutionState(int value); 768 void set resolutionState(int value);
768 769
769 MetadataAnnotation ensureResolved(Compiler compiler); 770 MetadataAnnotation ensureResolved(Compiler compiler);
770 } 771 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698