OLD | NEW |
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 library dart2js.semantics_visitor; | 5 library dart2js.semantics_visitor; |
6 | 6 |
7 import '../constants/expressions.dart'; | 7 import '../constants/expressions.dart'; |
8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
9 import '../diagnostics/spannable.dart' show | 9 import '../diagnostics/spannable.dart' show |
10 Spannable, | 10 Spannable, |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 /// For instance: | 1293 /// For instance: |
1294 /// | 1294 /// |
1295 /// m() { dynamic = rhs; } | 1295 /// m() { dynamic = rhs; } |
1296 /// | 1296 /// |
1297 R visitDynamicTypeLiteralSet( | 1297 R visitDynamicTypeLiteralSet( |
1298 SendSet node, | 1298 SendSet node, |
1299 ConstantExpression constant, | 1299 ConstantExpression constant, |
1300 Node rhs, | 1300 Node rhs, |
1301 A arg); | 1301 A arg); |
1302 | 1302 |
1303 /// Call to `assert` with [expression] as the condition. | |
1304 /// | |
1305 /// For instance: | |
1306 /// | |
1307 /// m() { assert(expression); } | |
1308 /// | |
1309 R visitAssert( | |
1310 Send node, | |
1311 Node expression, | |
1312 A arg); | |
1313 | |
1314 /// Call to `assert` with the wrong number of [arguments]. | |
1315 /// | |
1316 /// For instance: | |
1317 /// | |
1318 /// m() { assert(); } | |
1319 /// | |
1320 /// or | |
1321 /// | |
1322 /// m() { assert(expression1, expression2); } | |
1323 /// | |
1324 R errorInvalidAssert( | |
1325 Send node, | |
1326 NodeList arguments, | |
1327 A arg); | |
1328 | |
1329 /// Binary expression `left operator right` where [operator] is a user | 1303 /// Binary expression `left operator right` where [operator] is a user |
1330 /// definable operator. Binary expressions using operator `==` are handled | 1304 /// definable operator. Binary expressions using operator `==` are handled |
1331 /// by [visitEquals] and index operations `a[b]` are handled by [visitIndex]. | 1305 /// by [visitEquals] and index operations `a[b]` are handled by [visitIndex]. |
1332 /// | 1306 /// |
1333 /// For instance: | 1307 /// For instance: |
1334 /// | 1308 /// |
1335 /// add(a, b) => a + b; | 1309 /// add(a, b) => a + b; |
1336 /// sub(a, b) => a - b; | 1310 /// sub(a, b) => a - b; |
1337 /// mul(a, b) => a * b; | 1311 /// mul(a, b) => a * b; |
1338 /// | 1312 /// |
(...skipping 4509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5848 /// C() : this._(42); | 5822 /// C() : this._(42); |
5849 /// } | 5823 /// } |
5850 /// | 5824 /// |
5851 R errorUnresolvedThisConstructorInvoke( | 5825 R errorUnresolvedThisConstructorInvoke( |
5852 Send node, | 5826 Send node, |
5853 Element element, | 5827 Element element, |
5854 NodeList arguments, | 5828 NodeList arguments, |
5855 Selector selector, | 5829 Selector selector, |
5856 A arg); | 5830 A arg); |
5857 } | 5831 } |
OLD | NEW |