Create a new entity
(
name: impl Into<String>,
kind: EntityKind,
file: impl Into<String>,
line: u32,
end_line: u32,
)
| 154 | impl Entity { |
| 155 | /// Create a new entity |
| 156 | pub fn new( |
| 157 | name: impl Into<String>, |
| 158 | kind: EntityKind, |
| 159 | file: impl Into<String>, |
| 160 | line: u32, |
| 161 | end_line: u32, |
| 162 | ) -> Self { |
| 163 | Self { |
| 164 | name: name.into(), |
| 165 | kind, |
| 166 | file: file.into(), |
| 167 | line, |
| 168 | end_line, |
| 169 | column: None, |
| 170 | signature: None, |
| 171 | exported: false, |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | /// Create a placeholder entity to indicate a file existed but couldn't be parsed |
| 176 | /// (e.g., due to conflict markers in parent state) |
nothing calls this directly
no outgoing calls
no test coverage detected