( levels: number, guideStepPx: number, styleCache: GuideStyleCache, )
| 119 | } |
| 120 | |
| 121 | function getGuideStyle( |
| 122 | levels: number, |
| 123 | guideStepPx: number, |
| 124 | styleCache: GuideStyleCache, |
| 125 | ): string { |
| 126 | const key = `${levels}:${guideStepPx}`; |
| 127 | let style = styleCache.get(key); |
| 128 | if (!style) { |
| 129 | style = buildGuideStyle(levels, guideStepPx); |
| 130 | styleCache.set(key, style); |
| 131 | } |
| 132 | return style; |
| 133 | } |
| 134 | |
| 135 | function getCachedLineInfo( |
| 136 | lineNumber: number, |
no test coverage detected