rohd_source_navigator 0.1.0
rohd_source_navigator: ^0.1.0 copied to clipboard
Dart implementation of the ROHD source navigator — path normalisation, frame cycling, and DTD service for cross-probe source navigation.
// Copyright (C) 2026 Intel Corporation
// SPDX-License-Identifier: BSD-3-Clause
//
// main.dart
// Runnable FLC source-location lookup example.
//
// 2026 September 23
// Author: Desmond Kirkpatrick <desmond.a.kirkpatrick@intel.com>
import 'package:rohd_source_navigator/flc_data.dart';
void main() {
final data = FlcData.fromJson({
'version': 5,
'files': ['lib/top.dart'],
'modules': {
'Top': {
'tree': [
['0:42:5', 'result'],
],
},
},
});
final frames = data.lookupSignal('Top', 'result');
if (frames?.single.line != 42) {
throw StateError('Expected the result signal at lib/top.dart:42.');
}
}