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

Method new

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

Create a new entity

(
        name: impl Into<String>,
        kind: EntityKind,
        file: impl Into<String>,
        line: u32,
        end_line: u32,
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected