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

Side by Side Diff: lib/src/dart_sdk.dart

Issue 1137543005: Type check binary expressions (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and remove assert Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This 5 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This
6 /// includes logic to determine where the sdk is located in the filesystem, and 6 /// includes logic to determine where the sdk is located in the filesystem, and
7 /// definitions to provide mock sdks. 7 /// definitions to provide mock sdks.
8 library dev_compiler.src.dart_sdk; 8 library dev_compiler.src.dart_sdk;
9 9
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // _initializeFrom in resolver.dart). 106 // _initializeFrom in resolver.dart).
107 'dart:core': ''' 107 'dart:core': '''
108 library dart.core; 108 library dart.core;
109 109
110 void print(Object o) {} 110 void print(Object o) {}
111 111
112 class Object { 112 class Object {
113 int get hashCode {} 113 int get hashCode {}
114 Type get runtimeType {} 114 Type get runtimeType {}
115 String toString(){} 115 String toString(){}
116 bool ==(other){}
116 } 117 }
117 class Function {} 118 class Function {}
118 class StackTrace {} 119 class StackTrace {}
119 class Symbol {} 120 class Symbol {}
120 class Type {} 121 class Type {}
121 122
122 class String {} 123 class String {
124 String operator +(String other) {}
125 }
123 class bool {} 126 class bool {}
124 class num { 127 class num {
125 num operator +(num other) {} 128 num operator +(num other) {}
126 } 129 }
127 class int extends num { 130 class int extends num {
131 bool operator<(num other) {}
128 int operator-() {} 132 int operator-() {}
129 } 133 }
130 class double extends num {} 134 class double extends num {}
131 class DateTime {} 135 class DateTime {}
132 class Null {} 136 class Null {}
133 137
134 class Deprecated { 138 class Deprecated {
135 final String expires; 139 final String expires;
136 const Deprecated(this.expires); 140 const Deprecated(this.expires);
137 } 141 }
(...skipping 16 matching lines...) Expand all
154 class Future<T> { 158 class Future<T> {
155 Future then(callback) {} 159 Future then(callback) {}
156 } 160 }
157 class Stream<T> {} 161 class Stream<T> {}
158 ''', 162 ''',
159 'dart:html': ''' 163 'dart:html': '''
160 library dart.html; 164 library dart.html;
161 class HtmlElement {} 165 class HtmlElement {}
162 ''', 166 ''',
163 }; 167 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698