@flagshark/core 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@ export const INLINE_QUERIES = {
|
|
|
12
12
|
"go": "; Method call on a receiver: client.BoolVariation(...)\n(call_expression\n function: (selector_expression\n operand: (_) @receiver\n field: (field_identifier) @method)\n arguments: (argument_list) @args) @call\n\n; Bare function call: BoolVariation(...)\n(call_expression\n function: (identifier) @method\n arguments: (argument_list) @args) @call\n",
|
|
13
13
|
"java": "; Java unifies receiver calls and bare calls under method_invocation, so a\n; single pattern covers both client.boolVariation(\"flag\", ...) and a bare\n; boolVariation(\"flag\", ...). The `object:` field is left unconstrained so\n; both shapes match; the engine filters by method name.\n(method_invocation\n name: (identifier) @method\n arguments: (argument_list) @args) @call\n",
|
|
14
14
|
"javascript": "; tree-sitter-javascript's grammar uses identical node names to typescript\n; for these call shapes — we duplicate the file for clarity even though the\n; content is identical.\n\n(call_expression\n function: (member_expression\n object: (_) @receiver\n property: (property_identifier) @method)\n arguments: (arguments) @args) @call\n\n(call_expression\n function: (identifier) @method\n arguments: (arguments) @args) @call\n",
|
|
15
|
-
"php": "; Method call on an object: $client->variation(\"flag\", ...)\n(member_call_expression\n name: (name) @method\n arguments: (arguments) @args) @call\n\n; Bare function call: variation(\"flag\", ...)\n(function_call_expression\n function: (name) @method\n arguments: (arguments) @args) @call\n",
|
|
15
|
+
"php": "; Method call on an object: $client->variation(\"flag\", ...)\n(member_call_expression\n name: (name) @method\n arguments: (arguments) @args) @call\n\n; Bare function call: variation(\"flag\", ...)\n(function_call_expression\n function: (name) @method\n arguments: (arguments) @args) @call\n\n; Static call: Statsig::checkGate(..., \"flag\"), Feature::active(\"flag\")\n(scoped_call_expression\n name: (name) @method\n arguments: (arguments) @args) @call\n",
|
|
16
16
|
"python": "; Method call: client.variation(...)\n(call\n function: (attribute\n object: (_) @receiver\n attribute: (identifier) @method)\n arguments: (argument_list) @args) @call\n\n; Bare function call: variation(...)\n(call\n function: (identifier) @method\n arguments: (argument_list) @args) @call\n",
|
|
17
17
|
"rust": "; Method call on a receiver: client.bool_variation(&ctx, \"flag\", ...)\n(call_expression\n function: (field_expression\n field: (field_identifier) @method)\n arguments: (arguments) @args) @call\n\n; Bare function call: bool_variation(\"flag\", ...)\n(call_expression\n function: (identifier) @method\n arguments: (arguments) @args) @call\n",
|
|
18
18
|
"typescript": "; Match method-style calls: <receiver>.<method>(<args>)\n(call_expression\n function: (member_expression\n object: (_) @receiver\n property: (property_identifier) @method)\n arguments: (arguments) @args) @call\n\n; Match free-function calls: <method>(<args>)\n(call_expression\n function: (identifier) @method\n arguments: (arguments) @args) @call\n",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries-inline.js","sourceRoot":"","sources":["../../../src/detection/tree-sitter/queries-inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAsC;IAC/D,QAAQ,EAAE,0WAA0W;IACpX,IAAI,EAAE,wWAAwW;IAC9W,MAAM,EAAE,+XAA+X;IACvY,YAAY,EAAE,qbAAqb;IACnc,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"queries-inline.js","sourceRoot":"","sources":["../../../src/detection/tree-sitter/queries-inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAsC;IAC/D,QAAQ,EAAE,0WAA0W;IACpX,IAAI,EAAE,wWAAwW;IAC9W,MAAM,EAAE,+XAA+X;IACvY,YAAY,EAAE,qbAAqb;IACnc,KAAK,EAAE,gdAAgd;IACvd,QAAQ,EAAE,+SAA+S;IACzT,MAAM,EAAE,6VAA6V;IACrW,YAAY,EAAE,yWAAyW;CACxX,CAAA;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAe,CAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,YAAY,EAAC,KAAK,EAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,CAAC,CAAA"}
|