mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
jiangbo91@huawei.com 解决偶现删除backgroundColor属性时,异常报错 Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: Iad9a3fe566d0483dcfc270a720266cea0999a922
This commit is contained in:
@@ -465,7 +465,7 @@ function processDebug(node: ts.Statement, nameResult: NameResult, newStatements:
|
||||
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