(source: &str, entry: &str)
| 1 | use crate::compilation_pipeline::TargetMode; |
| 2 | |
| 3 | fn source_declares_entry(source: &str, entry: &str) -> bool { |
| 4 | source.lines().any(|line| { |
| 5 | let trimmed = line.trim_start(); |
| 6 | !trimmed.starts_with(';') && trimmed.starts_with(&format!("{entry}:")) |
| 7 | }) |
| 8 | } |
| 9 | |
| 10 | pub fn infer_target_mode_for_source( |
| 11 | source: &str, |
no test coverage detected