Create a placeholder entity to indicate a file existed but couldn't be parsed (e.g., due to conflict markers in parent state)
(file: impl Into<String>)
| 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) |
| 177 | pub fn placeholder_for_modified_file(file: impl Into<String>) -> Self { |
| 178 | Self { |
| 179 | name: PLACEHOLDER_NAME.to_string(), |
| 180 | kind: EntityKind::Module, |
| 181 | file: file.into(), |
| 182 | line: 0, |
| 183 | end_line: 0, |
| 184 | column: None, |
| 185 | signature: None, |
| 186 | exported: false, |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | /// Check if this entity is a placeholder |
| 191 | pub fn is_placeholder(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected