-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atddiff: Add an option to output JSON (#370)
* Prepare for JSON output * Make JSON output more amenable to future format changes * Output JSON with '--output-format json' * Update changelog --------- Co-authored-by: Martin Jambon <[email protected]>
- Loading branch information
Showing
41 changed files
with
773 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(* Auto-generated from "Atddiff_output.atd" *) | ||
[@@@ocaml.warning "-27-32-33-35-39"] | ||
|
||
type variant_info = { variant_name: string } | ||
|
||
type position = { path: string; line: int; column: int } | ||
|
||
type location = { start: position; end_ (*atd end *): position } | ||
|
||
type field_info = { field_name: string } | ||
|
||
type incompatibility_kind = | ||
Missing_field of field_info | ||
| Missing_variant of variant_info | ||
| Missing_variant_argument of variant_info | ||
| Default_required of field_info | ||
| Incompatible_type | ||
| Deleted_type | ||
| Added_type | ||
|
||
|
||
type direction = Backward | Forward | Both | ||
|
||
type finding = { | ||
direction: direction; | ||
kind: incompatibility_kind; | ||
location_old: location option; | ||
location_new: location option; | ||
description: string | ||
} | ||
|
||
type full_finding = { finding: finding; affected_types: string list } | ||
|
||
type result = { findings: full_finding list } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
(* Auto-generated from "Atddiff_output.atd" *) | ||
[@@@ocaml.warning "-27-32-33-35-39"] | ||
|
||
type variant_info = { variant_name: string } | ||
|
||
type position = { path: string; line: int; column: int } | ||
|
||
type location = { start: position; end_ (*atd end *): position } | ||
|
||
type field_info = { field_name: string } | ||
|
||
type incompatibility_kind = | ||
Missing_field of field_info | ||
| Missing_variant of variant_info | ||
| Missing_variant_argument of variant_info | ||
| Default_required of field_info | ||
| Incompatible_type | ||
| Deleted_type | ||
| Added_type | ||
|
||
|
||
type direction = Backward | Forward | Both | ||
|
||
type finding = { | ||
direction: direction; | ||
kind: incompatibility_kind; | ||
location_old: location option; | ||
location_new: location option; | ||
description: string | ||
} | ||
|
||
type full_finding = { finding: finding; affected_types: string list } | ||
|
||
type result = { findings: full_finding list } |
Oops, something went wrong.