Chromium Code Reviews| Index: lib/compiler/implementation/universe/universe.dart |
| diff --git a/lib/compiler/implementation/universe/universe.dart b/lib/compiler/implementation/universe/universe.dart |
| index 3baa353b64a6cb4590542ab0b1d7df70428119af..c0ee611ff676e76803efbcda0f50f0f56521424c 100644 |
| --- a/lib/compiler/implementation/universe/universe.dart |
| +++ b/lib/compiler/implementation/universe/universe.dart |
| @@ -201,13 +201,8 @@ class Selector { |
| bool isUnaryOperator() => isOperator() && argumentCount == 0; |
| bool isBinaryOperator() => isOperator() && argumentCount == 1; |
| - /** Check whether this is a call to 'assert' with one positional parameter. */ |
| - bool isAssertSyntax() { |
| - return (isCall() && |
| - name.stringValue === "assert" && |
| - argumentCount == 1 && |
| - namedArgumentCount == 0); |
| - } |
| + /** Check whether this is a call to 'assert'. */ |
| + bool isAssert() { return (isCall() && name.stringValue === "assert"); } |
|
ahe
2012/10/11 07:19:21
Use => shorthand or add newline after {.
aam-me
2012/10/11 12:26:05
Done.
|
| int hashCode() => argumentCount + 1000 * namedArguments.length; |
| int get namedArgumentCount => namedArguments.length; |