MCPcopy Create free account
hub / github.com/angular/angular / read_resource

Method read_resource

packages/compiler-cli/preprocessor/ng-analyze/src/wasm.rs:160–163  ·  view source on GitHub ↗
(&self, containing_file: String, url: String)

Source from the content-addressed store, hash-verified

158 }
159
160 pub fn read_resource(&self, containing_file: String, url: String) -> Option<String> {
161 let res = self.analyzer.read_resource_core(containing_file, url)?;
162 serde_json::to_string(&res).ok()
163 }
164
165 pub fn canonical_paths(&self, paths_json: &str) -> Result<String, String> {
166 let paths: Vec<String> = serde_json::from_str(paths_json).map_err(|e| e.to_string())?;

Callers

nothing calls this directly

Calls 2

read_resource_coreMethod · 0.80
okMethod · 0.80

Tested by

no test coverage detected