mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 08:34:37 -04:00
解决偶现删除backgroundColor属性时,异常报错 Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: Iad9a3fe566d0483dcfc270a720266cea0999a922
This commit is contained in:
@@ -338,7 +338,7 @@ function processInnerComponent(node: ts.ExpressionStatement, newStatements: ts.S
|
||||
let curFileName: string;
|
||||
let line: number = 1;
|
||||
let col: number = 1;
|
||||
if (newsupplement.isAcceleratePreview) {
|
||||
if (sourceNode && newsupplement.isAcceleratePreview) {
|
||||
posOfNode = sourceNode.getLineAndCharacterOfPosition(getRealNodePos(node));
|
||||
curFileName = newsupplement.fileName;
|
||||
if (posOfNode.line === 0) {
|
||||
|
||||
Reference in New Issue
Block a user