blob: c63bc2b5b85f765857a72b8218caed80cef2ea24 [file] [edit]
// Copyright (c) 2023, 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 'memory.dart';
class Memories {
/// Imported memories.
final List<ImportedMemory> imported;
/// Defined memories.
final List<DefinedMemory> defined;
Memories(this.imported, this.defined);
Memory operator [](int index) => index < imported.length
? imported[index]
: defined[index - imported.length];
}