MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / fromSource

Method fromSource

packages/core/ui/styling/style-scope.ts:189–191  ·  view source on GitHub ↗
(source: string, url?: string)

Source from the content-addressed store, hash-verified

187 }
188
189 public static fromSource(source: string, url?: string): CSSSource {
190 return new CSSSource(undefined, url, undefined, source);
191 }
192
193 public static fromAST(ast: ReworkCSS.SyntaxTree, url?: string): CSSSource {
194 return new CSSSource(ast, url, undefined, undefined);

Callers 4

fromDetectMethod · 0.80
style-scope.tsFile · 0.80
setCssMethod · 0.80
appendCssMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected