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

Method extract_references

atomic-semantic/src/parsers/mod.rs:213–216  ·  view source on GitHub ↗

Extract references (function calls, variable usages) from source code. The default implementation returns an empty list. Languages that support reference extraction should override this. # Arguments `source` - The source code text. `file_path` - The file path (for Reference.file field). # Returns A list of references found in the source code.

(&mut self, source: &str, file_path: &str)

Source from the content-addressed store, hash-verified

211 ///
212 /// A list of references found in the source code.
213 fn extract_references(&mut self, source: &str, file_path: &str) -> Vec<Reference> {
214 let _ = (source, file_path);
215 Vec::new()
216 }
217}
218
219// ═══════════════════════════════════════════════════════════════════════

Callers

nothing calls this directly

Implementers 7

rust.rsatomic-semantic/src/parsers/rust.rs
java.rsatomic-semantic/src/parsers/java.rs
swift.rsatomic-semantic/src/parsers/swift.rs
python.rsatomic-semantic/src/parsers/python.rs
cpp.rsatomic-semantic/src/parsers/cpp.rs
go.rsatomic-semantic/src/parsers/go.rs
typescript.rsatomic-semantic/src/parsers/typescript

Calls

no outgoing calls

Tested by

no test coverage detected