Skip to content

Commit 2b78487

Browse files
committed
more
1 parent d8b9419 commit 2b78487

6 files changed

+21
-17
lines changed

semgrep_output_v1.atd

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@ type position
107107
col: int; (* starts from 1 *)
108108
(* Byte position from the beginning of the file, starts at 0.
109109
* OCaml code sets it correctly. Python code sets it to a dummy value (-1).
110+
* This uses '~' because pysemgrep < 1.30? was *producing* positions without
111+
* offset sometimes, and we want the backend to still *consume* such positions.
112+
* Note that pysemgrep 1.97 was still producing dummy positions without
113+
* an offset so we might need this ~offset longer than expected?
110114
*)
111-
offset: int;
115+
~offset: int;
112116
}
113117

114118
(* a.k.a range *)

semgrep_output_v1.jsonschema

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.proto

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.ts

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1_j.ml

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)