File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/language-core/lib/codegen/template Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { generateInterpolation } from './interpolation';
15
15
import { generatePropertyAccess } from './propertyAccess' ;
16
16
import { generateTemplateChild } from './templateChild' ;
17
17
import { generateObjectProperty } from './objectProperty' ;
18
+ import { getNodeText } from '../../parsers/scriptSetupRanges' ;
18
19
19
20
const colonReg = / : / g;
20
21
@@ -726,10 +727,11 @@ function* generateReferencesForScopedCssClasses(
726
727
}
727
728
728
729
function walkIdentifier ( node : ts . Identifier ) {
730
+ const text = getNodeText ( ts , node , ast ) ;
729
731
ctx . scopedClasses . push ( {
730
732
source : 'template' ,
731
- className : node . text ,
732
- offset : node . end - node . text . length + startOffset
733
+ className : text ,
734
+ offset : node . end - text . length + startOffset
733
735
} ) ;
734
736
}
735
737
}
You can’t perform that action at this time.
0 commit comments