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

Method setCss

packages/core/ui/styling/style-scope.ts:877–885  ·  view source on GitHub ↗
(cssString: string, cssFileName?)

Source from the content-addressed store, hash-verified

875
876 @profile
877 private setCss(cssString: string, cssFileName?): void {
878 this._css = cssString;
879
880 const cssFile = CSSSource.fromSource(cssString, cssFileName);
881 this._localCssSelectors = cssFile.selectors;
882 this._localCssKeyframes = cssFile.keyframes;
883 this._localCssSelectorVersion++;
884 this.ensureSelectors();
885 }
886
887 @profile
888 private appendCss(cssString: string, cssFileName?): void {

Callers 1

cssMethod · 0.95

Calls 2

ensureSelectorsMethod · 0.95
fromSourceMethod · 0.80

Tested by

no test coverage detected