MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / placeholder_for_modified_file

Method placeholder_for_modified_file

atomic-semantic/src/entity.rs:177–188  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected