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

Side by Side Diff: pkg/compiler/lib/src/resolution/operators.dart

Issue 1286993004: Split resolution into several libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 library dart2js.operators; 5 library dart2js.operators;
6 6
7 import '../elements/elements.dart'; 7 import '../elements/elements.dart';
8 import '../universe/universe.dart'; 8 import '../universe/universe.dart' show
9 CallStructure,
10 Selector,
11 SelectorKind;
9 12
10 enum UnaryOperatorKind { 13 enum UnaryOperatorKind {
11 NOT, 14 NOT,
12 NEGATE, 15 NEGATE,
13 COMPLEMENT, 16 COMPLEMENT,
14 } 17 }
15 18
16 class UnaryOperator { 19 class UnaryOperator {
17 final UnaryOperatorKind kind; 20 final UnaryOperatorKind kind;
18 final String name; 21 final String name;
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB); 410 const IncDecOperator._(IncDecOperatorKind.DEC, '--', BinaryOperator.SUB);
408 411
409 static IncDecOperator parse(String value) { 412 static IncDecOperator parse(String value) {
410 switch (value) { 413 switch (value) {
411 case '++': return INC; 414 case '++': return INC;
412 case '--': return DEC; 415 case '--': return DEC;
413 default: return null; 416 default: return null;
414 } 417 }
415 } 418 }
416 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698