1
1
mirror of https://github.com/github/semantic.git synced 2025-01-08 08:30:27 +03:00
Commit Graph

4760 Commits

Author SHA1 Message Date
Rob Rix
33040ea22e Assign terms based on the Category. 2017-01-19 12:26:45 -05:00
Rob Rix
83acde8ad4 Add a function computing the Category for a given language & production name. 2017-01-19 12:26:20 -05:00
Rob Rix
fde31b836e Go term assignment is pure. 2017-01-19 12:02:35 -05:00
joshvera
ee10187ba1 Merge remote-tracking branch 'origin/master' into more-go-terms 2017-01-18 15:36:02 -05:00
joshvera
95d6f7a850 Add a maybeRecursively so we compare optional values as insertions or deletions when one side is missing 2017-01-18 15:08:30 -05:00
joshvera
9966b88f1b s/if statement/maybe 2017-01-18 14:07:39 -05:00
joshvera
7f396dd7b7 Rename Default to DefaultCase 2017-01-18 14:06:45 -05:00
joshvera
b3a300f745 Add docs 2017-01-18 14:02:06 -05:00
Rob Rix
dbcfb85c1c This comment now applies to sourceSpan as well. 2017-01-18 13:40:55 -05:00
Rob Rix
0854ba66e2 Evaluate the SourceSpan strictly. 2017-01-18 13:39:58 -05:00
Rob Rix
60a8f588e4 Term assignment takes a pure SourceSpan.
We always access this now, so we don’t need to guard it in IO.
2017-01-18 13:39:40 -05:00
joshvera
d34b8e2354 Parse methods 2017-01-18 13:38:31 -05:00
joshvera
d4c33c0176 Map keyed_element to Pair 2017-01-18 13:01:25 -05:00
joshvera
0acdf470e4 Remove identifer_list wrapper in field declarations 2017-01-18 12:53:12 -05:00
joshvera
8e88838495 Merge remote-tracking branch 'origin/master' into more-go-terms 2017-01-18 11:14:03 -05:00
joshvera
0c24778b05 add rune literal case 2017-01-17 18:57:43 -05:00
joshvera
496e95a41f fix rune tests 2017-01-17 18:55:59 -05:00
joshvera
fc55bee5fc Change Break and Continue to take a Maybe 2017-01-17 17:20:50 -05:00
joshvera
0c36efc850 Fix ranges and categories for const var assignments 2017-01-17 17:10:34 -05:00
joshvera
c3201ed689 Map var declarations to VarDecl 2017-01-17 14:56:59 -05:00
joshvera
23450d64ee Clean up dead code 2017-01-17 13:20:46 -05:00
joshvera
e97330fe83 Map short var declarations to var assignments 2017-01-17 13:19:46 -05:00
joshvera
f3d29d894e Convert var_declaration to Indexed and var_spec to VarAssignment 2017-01-17 12:30:42 -05:00
joshvera
a95d57c8cf Parse struct type declarations 2017-01-17 12:23:56 -05:00
joshvera
71a147862a tags can only be strings in field declarations 2017-01-17 12:06:26 -05:00
joshvera
74b2b1715c Add correct ranges to errors 2017-01-17 11:54:11 -05:00
joshvera
52c4f1a7b4 Add tag to FieldDecl 2017-01-17 11:53:44 -05:00
Rick Winfrey
e0983245d2 Add missing category 2017-01-13 16:46:24 -08:00
Rick Winfrey
4fcd80a6fe Add qualified identifiers for Go 2017-01-13 16:46:16 -08:00
Rick Winfrey
27196d8f6b Add Go support for increment / decrement statements 2017-01-13 15:03:42 -08:00
Rick Winfrey
46345434ca Merge branch 'more-go-terms' of github.com:github/semantic-diff into more-go-terms 2017-01-12 16:09:48 -08:00
joshvera
cb2f0b7e7b unused param 2017-01-12 19:00:10 -05:00
Rick Winfrey
25c79a31de Merge branch 'more-go-terms' of github.com:github/semantic-diff into more-go-terms 2017-01-12 15:59:00 -08:00
Rick Winfrey
86a456b285 Merge remote 2017-01-12 15:54:14 -08:00
joshvera
2dd0f2c609 add missing send statement case in Renderer.Split 2017-01-12 18:53:20 -05:00
joshvera
e3505286ba Add function types 2017-01-12 18:52:11 -05:00
joshvera
741ccd4c05 Map unary_expression to Operator 2017-01-12 18:44:11 -05:00
joshvera
20ead53d1c Add send statements 2017-01-12 18:39:09 -05:00
joshvera
45fe48b1ad Map channel types 2017-01-12 18:33:13 -05:00
joshvera
79d9561c4f Make types identifiable for now 2017-01-12 18:28:49 -05:00
joshvera
98f2407677 Add Ty syntax 2017-01-12 17:56:41 -05:00
Rob Rix
9cb0d7a354 Merge branch 'master' into leancheck,-the-other-white-meat 2017-01-12 15:55:26 -05:00
Rob Rix
364d36f40f Use the Tier type synonym more widely. 2017-01-12 15:53:31 -05:00
Rick Winfrey
0880b41fc6 Add slice literal summary statements 2017-01-12 12:00:09 -08:00
Rick Winfrey
2563a26a8a Add Literal category 2017-01-12 11:59:38 -08:00
Rick Winfrey
7cd5da6ea6 Add SliceTy and Element to Split renderer 2017-01-12 11:47:29 -08:00
Rick Winfrey
d015068e5b Add mapping for slice types 2017-01-12 11:44:07 -08:00
Rick Winfrey
5fa1e51694 Add mapping for Slice literals and their elements 2017-01-12 11:43:44 -08:00
Rick Winfrey
1caeb18406 Add Element category 2017-01-12 11:38:44 -08:00
Rick Winfrey
b69badb184 Add SliceTy category 2017-01-12 11:38:35 -08:00
Rob Rix
b12aa44636 Replace the quaternary ToJSON instance over Record with an inductive one. 2017-01-12 14:23:36 -05:00
Rob Rix
3124447ad6 Define ToJSONList instances over records. 2017-01-12 14:23:18 -05:00
Rob Rix
a044e862b2 Define a typeclass for computing a record’s component Values. 2017-01-12 14:23:03 -05:00
Rick Winfrey
3a7259503d Add FieldDecl renderer entries 2017-01-11 15:26:56 -08:00
Rick Winfrey
ad9895a28c Merge branch 'more-go-terms' of github.com:github/semantic-diff into more-go-terms 2017-01-11 15:23:04 -08:00
Rick Winfrey
4bddf7952a Summarize FieldDecl 2017-01-11 15:10:45 -08:00
Rick Winfrey
24e8e87cd5 Make TypeDecl identifiable but not Struct 2017-01-11 15:10:28 -08:00
Rick Winfrey
2bb7ec94ac Add field declaration mapping 2017-01-11 15:10:12 -08:00
Rick Winfrey
f2eacd915c Build Structs (and also allow for empty structs) 2017-01-11 15:09:58 -08:00
Rick Winfrey
99e4e8da28 Add type and field declarations to Go category list 2017-01-11 15:09:19 -08:00
Rick Winfrey
7dcab8f987 Formatting 2017-01-11 15:06:28 -08:00
Rick Winfrey
9d9e3e295f Add FieldDecl Syntax 2017-01-11 15:06:06 -08:00
Rick Winfrey
ce8de2b833 Add FieldDecl category 2017-01-11 15:05:51 -08:00
joshvera
ccdaf8f663 Add PointerTy category 2017-01-11 17:45:31 -05:00
joshvera
5b2f6ed3d5 Make TypeDecl Identifiable 2017-01-11 16:32:01 -05:00
Rick Winfrey
2ac9497559 Add Default and TypeDecl arbitrary categories 2017-01-10 15:40:10 -08:00
Rick Winfrey
6e488a4d6f Add TypeDecl to Renderer.Split 2017-01-10 15:39:50 -08:00
joshvera
d1ed9fd7ba totality our old friend 2017-01-10 18:17:48 -05:00
joshvera
5d1e105dc3 Parse type declarations 2017-01-10 18:04:34 -05:00
joshvera
8fc30bea71 never mind don't make case statements identifiable 2017-01-10 16:51:50 -05:00
joshvera
0d13819f30 Make a switch statements clause a Maybe 2017-01-10 16:41:55 -05:00
Rob Rix
01347e4af9 Go back to QuickCheck’s RNG for RWS.
Changing the RNG changes the vectors which changes the similarities which changes the results which breaks the integration tests. See also #778.
2017-01-10 16:29:07 -05:00
joshvera
fdea1399f0 Make case statements identifiable 2017-01-10 16:21:29 -05:00
joshvera
6d42df94ec Add missing Default cases 2017-01-10 16:19:15 -05:00
Rob Rix
34d6c36b0c 📝 Data.Functor.Listable. 2017-01-10 16:10:07 -05:00
joshvera
d42962590b Consider expression_case to be a Case statement 2017-01-10 16:06:48 -05:00
joshvera
b6c22b8477 Don't consider expression_case_clause a Case statement 2017-01-10 16:06:26 -05:00
joshvera
83eb1539e9 Unpack expression_case_clause 2017-01-10 16:06:12 -05:00
joshvera
cbd132c8dc Add a Default Syntax for default cases 2017-01-10 16:05:55 -05:00
joshvera
3d95799fc7 Handle parameter declarations 2017-01-10 15:09:09 -05:00
joshvera
8de5504f97 Add a top level node in case comments come before a module 2017-01-10 13:48:23 -05:00
joshvera
531524f29c Revert "Don't wrap a VarAssignment in a VarDecl"
This reverts commit 2b39a7cc0576675f0104f67a00df799b6f9ef970.
2017-01-09 18:07:23 -05:00
joshvera
cbb31dd42a Fix up categories for var decls 2017-01-09 17:54:27 -05:00
joshvera
3fbc488c39 Don't wrap a VarAssignment in a VarDecl 2017-01-09 17:21:48 -05:00
joshvera
0f7e190c7f Map function literals to var assignment summaries 2017-01-09 16:42:39 -05:00
joshvera
98c5c41cfa Allow dictionaries to be identifiable 2017-01-09 15:20:36 -05:00
Rob Rix
b4cd153a43 Generate random walks with mkStdGen. 2017-01-09 15:16:06 -05:00
joshvera
57137db0cf bump tests 2017-01-09 15:13:55 -05:00
joshvera
760d99cc53 Allow arrays with types to be identifiable 2017-01-09 15:10:20 -05:00
Rob Rix
1ee9a60039 🔥 Arbitrary instances. 2017-01-09 14:59:04 -05:00
Rob Rix
21f0b8b152 🔥 {Term,Diff}.Arbitrary. 2017-01-09 14:46:47 -05:00
Rob Rix
c326fd447c Move the Listable instance for Patch into its module. 2017-01-09 14:45:09 -05:00
Rob Rix
57a4ecd6e3 Convert leaf values to Text using StringConv. 2017-01-09 14:29:24 -05:00
Rob Rix
233113913a 🔥 a redundant import of Test.LeanCheck. 2017-01-09 11:46:04 -05:00
Rob Rix
75d4488bf8 Export a Tier type synonym. 2017-01-07 23:37:20 -05:00
Rob Rix
489631ee50 Allow Term to be partially applied. 2017-01-07 09:34:49 -05:00
Rob Rix
ddaa2d2d18 Define a Listable newtype wrapper for Listable1 type applications. 2017-01-07 09:13:40 -05:00
Rob Rix
a9ba058cf9 Define a Listable1 instance over (Listable1 f, Listable a) => CofreeF f a. 2017-01-07 09:07:48 -05:00
Rob Rix
8a06e024f5 Define a Listable1 instance over (Listable1 f, Listable a) => FreeF f a. 2017-01-07 09:03:38 -05:00
joshvera
ae40908cd2 Update go tests 2017-01-05 17:08:28 -05:00