Linter Demo Errors: 0Warnings: 1File: /home/fstrocco/Dart/dart/benchmark/compiler/lib/src/util/emptyset.dart // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. library dart2js.util.emptyset; import 'dart:collection' show IterableBase; class ImmutableEmptySet extends IterableBase implements Set { const ImmutableEmptySet(); get iterator => const _EmptySetIterator(); int get length => 0; bool get isEmpty => true; get _immutableError => throw new UnsupportedError("EmptySet is immutable"); bool add (E element) => _immutableError; void addAll(Iterable elements) => _immutableError; E lookup(E element) => null; bool remove(E element) => false; void removeAll(Iterable elements) {} void removeWhere(bool test(E element)) {} void retainAll(Iterable elements) {} void retainWhere(bool test(E element)) {} void forEach(void action(E element)) {} void clear() {} bool contains(E element) => false; bool containsAll(Iterable other) => other.isEmpty; Set union(Set other) => new Set.from(other); Set intersection(Set other) => this; Set difference(Set other) => this; Set toSet() => new Set(); } class _EmptySetIterator implements Iterator { const _EmptySetIterator(); E get current => null; bool moveNext() => false; }