From 08ebc4535330af15a587f36cfdfeeb76d0eb9e10 Mon Sep 17 00:00:00 2001 From: Sonny Vesali <79886185+sonnyvesali@users.noreply.github.com> Date: Sun, 27 Oct 2024 08:05:29 -0500 Subject: [PATCH] add: if statement support --- packages/common/src/scopeSupportFacets/dart.ts | 6 +++++- queries/dart.scm | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/common/src/scopeSupportFacets/dart.ts b/packages/common/src/scopeSupportFacets/dart.ts index d3ea05efa7..9c2b9d0832 100644 --- a/packages/common/src/scopeSupportFacets/dart.ts +++ b/packages/common/src/scopeSupportFacets/dart.ts @@ -4,4 +4,8 @@ import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; // eslint-disable-next-line @typescript-eslint/no-unused-vars const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; -export const dartScopeSupport: LanguageScopeSupportFacetMap = {}; +export const dartScopeSupport: LanguageScopeSupportFacetMap = { + // list: supported, + // map: supported, + ifStatement: supported, +}; diff --git a/queries/dart.scm b/queries/dart.scm index e69de29bb2..cb81f4912a 100644 --- a/queries/dart.scm +++ b/queries/dart.scm @@ -0,0 +1,4 @@ + +;;!! if () {} +;;! ^^^^^^^^ +(if_statement) @ifStatement \ No newline at end of file