Skip to content

Commit

Permalink
fix a nullable accessor.............ding it
Browse files Browse the repository at this point in the history
  • Loading branch information
albertleigh committed Nov 17, 2021
1 parent 2ec6aa6 commit fb51590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languages/monaco-az-logic-app-lang/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export class LiteralArrayNode extends LiteralValueNode{
// override the existing literal array
if (
this.astNode && this.astNode.$impostureLang?.dataType === "array-literal" &&
(this.astNode as any).beginCaptureChildren.length &&
(this.astNode as any).beginCaptureChildren?.length &&
(this.astNode as any).beginCaptureChildren[0].scopeName === "meta.brace.square.azLgcAppExp" &&
typeof (this.astNode as any).beginCaptureChildren[0].offset === 'number'
){
Expand All @@ -587,7 +587,7 @@ export class LiteralArrayNode extends LiteralValueNode{

if (
this.astNode && this.astNode.$impostureLang?.dataType === "array-literal" &&
(this.astNode as any).endCaptureChildren.length &&
(this.astNode as any).endCaptureChildren?.length &&
(this.astNode as any).endCaptureChildren[0].scopeName === "meta.brace.square.azLgcAppExp" &&
typeof (this.astNode as any).endCaptureChildren[0].offset === 'number'
){
Expand Down

0 comments on commit fb51590

Please sign in to comment.