blob: ee59adcfa9c991e40af9ed97d26970f0113af60d [file] [log] [blame]
// Copyright (c) 2019, 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.
import 'package:analyzer/src/summary2/reference.dart';
class Scope {
final Map<String, Reference> map = {};
void declare(String name, Reference reference) {
map[name] = reference;
}
void forEach(void Function(String name, Reference reference) f) {
map.forEach(f);
}
}