1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 08:25:19 +03:00
Commit Graph

840 Commits

Author SHA1 Message Date
Rob Rix
a7bfbb72f4 Rename characterRange to byteRange. 2017-02-16 11:58:26 -05:00
Timothy Clem
70c8e2a57b Property test that toc summarizes methods and functions 2017-02-15 16:13:34 -08:00
Timothy Clem
b34c71dcc5 Merge branch 'master' into dedupe-added-removed-methods 2017-02-15 08:14:21 -08:00
Timothy Clem
09337e21d8 Merge remote-tracking branch 'origin/master' into go-receiver-toc-iteration 2017-02-14 13:13:11 -08:00
Timothy Clem
1facca0b50 Add failing toc summary test and refactor removeDupes 2017-02-14 11:29:24 -08:00
Timothy Clem
8bc4da76c9 Have to check parentInfo for duplicates 2017-02-14 08:27:00 -08:00
Timothy Clem
2770540191 Make sure we have a real Summarizable to replace with 2017-02-13 17:30:33 -08:00
Timothy Clem
d68633f643 WIP - identify similar methods/functions 2017-02-13 17:18:25 -08:00
Timothy Clem
31519dda42 Remove dups, including matching method names 2017-02-13 16:15:38 -08:00
Timothy Clem
cb611a4aa6 Pass in parentOffset to toTermName 2017-02-13 12:53:20 -08:00
Rob Rix
52025ac5e5 Don’t trim the source for recursive calls into termToDiffInfo. 2017-02-13 15:19:06 -05:00
Rob Rix
24722c3fb6 Render Text. 2017-02-13 09:39:33 -05:00
Rob Rix
00c14e403a Revert "Source carries its Range."
This reverts commit 6e075787935c10b0bd7256673a5623cb5d1a4945.
2017-02-10 16:44:09 -05:00
Rob Rix
672ff179ed Source carries its Range. 2017-02-10 15:33:41 -05:00
Rob Rix
2a30f6d462 Pre-slice in termToDiffInfo. 2017-02-10 14:23:42 -05:00
Rob Rix
5134595525 Rename blob to source. 2017-02-10 14:18:55 -05:00
Rob Rix
bc2a29d84e Source is no longer parametric in the character type. 2017-02-10 11:21:24 -05:00
Rob Rix
35c39e8b56 Change subtractRange to offsetRange.
This has slightly clearer semantics.
2017-02-10 11:11:25 -05:00
Timothy Clem
7ba739a508 Properly calculate range for subterms 2017-02-09 14:47:35 -08:00
Rob Rix
ac4df9a7b3 Remove the Foldable instance for Source. 2017-02-09 17:10:16 -05:00
Rob Rix
fe22126059 Pre-slice the source. 2017-02-09 16:33:33 -05:00
Timothy Clem
a3a895d107 Another iterator for go method toc summaries 2017-02-08 10:57:13 -08:00
Timothy Clem
ded960356a Remove S.MemberAccess case entirely since it's now handled above 2017-02-07 15:20:27 -08:00
Timothy Clem
2f230a485e Add receiver to Syntax.Method 2017-02-07 14:53:15 -08:00
Timothy Clem
85afbd6df4 Handle termAssignment for Ruby singleton method defs 2017-02-07 11:59:18 -08:00
joshvera
0503fc9555 Flatten BranchInfo patches 2017-01-26 15:07:18 -05:00
joshvera
386fa47ae6 s/Error/ParseError 2017-01-26 12:48:03 -05:00
joshvera
69cf915bf7 Only export toc 2017-01-26 12:46:28 -05:00
Josh Vera
36804a8686 Merge branch 'master' into table-of-contents 2017-01-26 12:07:08 -05:00
Rob Rix
41a10c977f Merge remote-tracking branch 'origin/master' into consolidate-common-term-assignment-patterns 2017-01-25 20:44:58 -05:00
joshvera
3ab42ca794 add a param 2017-01-25 18:26:03 -05:00
Josh Vera
b9f9dff1c6 Merge branch 'master' into table-of-contents 2017-01-25 18:19:40 -05:00
Timothy Clem
3d4f6fe48b Remove need to qualify patch 2017-01-25 10:45:56 -08:00
Timothy Clem
a8fed91deb No need for HideInfo constructor b/c we only surface functions/methods 2017-01-25 08:47:50 -08:00
Timothy Clem
2b0363e031 Remove comments and API sketching 2017-01-25 08:46:45 -08:00
joshvera
bd5b2a4c93 Add optional type to Syntax.Function 2017-01-25 11:41:09 -05:00
Rob Rix
2929fb3cb4 Rename Syntax.Error to ParseError. 2017-01-25 03:09:53 -05:00
Rob Rix
296c53f187 Rename Category.Error to ParseError. 2017-01-25 03:08:06 -05:00
joshvera
dd6a5d3a20 Rename sourceSpan keys to span 2017-01-24 17:20:22 -05:00
joshvera
348d5ae699 Move patchType to Patch 2017-01-24 16:00:25 -05:00
joshvera
e3da60eada Add afterOrBefore function to Patch.hs 2017-01-24 15:58:17 -05:00
Timothy Clem
e53ae6a88a Catch (and hide) NotSummarizable leaves 2017-01-24 11:25:44 -08:00
Timothy Clem
f49fc1910d Don't print method arguments 2017-01-24 11:18:59 -08:00
Timothy Clem
9ec2262b38 Refactor names and handling of what's summarizable 2017-01-24 11:16:22 -08:00
joshvera
3f34bcec46 Expand toTermName to summarize methods and functions 2017-01-24 12:14:14 -05:00
joshvera
acb277e32c remove duplicates 2017-01-24 12:13:59 -05:00
joshvera
1fe58a5c48 Panic in toJSON if we see a None 2017-01-24 12:13:22 -05:00
joshvera
b3bbff3f45 Output term, category, sourceSpan 2017-01-23 17:46:29 -05:00
joshvera
c35d7e8089 Summarize functions and methods to ExpressionInfo 2017-01-23 17:26:43 -05:00
joshvera
3177a565a7 Append parent annotations to summaries 2017-01-23 16:59:47 -05:00
joshvera
cc4cc5efc6 Add ParentInfo to carry information about parent or expression information 2017-01-23 16:33:07 -05:00
joshvera
261f374fb5 Parameterize JSONSummary with term context info types 2017-01-23 15:58:20 -05:00
Timothy Clem
381549c045 Structure to produce toc summaries 2017-01-23 11:13:11 -08:00
joshvera
f8ecbf9286 WIP stub TOC renderer 2017-01-23 12:16:59 -05:00
joshvera
18c8a0124d Add a stub TOC renderer 2017-01-23 11:22:51 -05:00
Rob Rix
cd5a51aa7a Disable -Wdeprecations on files pattern matching against Category.
We can’t 🔥 RescueModifier yet because of RWS instability. See also #778.
2017-01-19 14:01:48 -05:00
Rob Rix
eb8c09f2b5 Revert "🔥 RescueModifier."
This reverts commit 9eda5f256678287b9252a7c654ffcaf486b22c21.
2017-01-19 13:51:24 -05:00
Rob Rix
21dabbe077 🔥 RescueModifier. 2017-01-19 13:13:57 -05:00
Rob Rix
408ad2ecc5 Add Modifier categories.
These are used when a normal syntactic category is attached as a modifier instead of as a statement, e.g.:

```ruby
if foo then bar end
```

vs.

```ruby
bar if foo
```
2017-01-19 12:55:06 -05:00
joshvera
7f396dd7b7 Rename Default to DefaultCase 2017-01-18 14:06:45 -05:00
joshvera
d34b8e2354 Parse methods 2017-01-18 13:38:31 -05:00
joshvera
496e95a41f fix rune tests 2017-01-17 18:55:59 -05:00
joshvera
c3201ed689 Map var declarations to VarDecl 2017-01-17 14:56:59 -05:00
joshvera
a95d57c8cf Parse struct type declarations 2017-01-17 12:23:56 -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
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
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
98f2407677 Add Ty syntax 2017-01-12 17:56:41 -05: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
3a7259503d Add FieldDecl renderer entries 2017-01-11 15:26:56 -08:00
joshvera
ccdaf8f663 Add PointerTy category 2017-01-11 17:45:31 -05: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
6d42df94ec Add missing Default cases 2017-01-10 16:19:15 -05:00
joshvera
3d95799fc7 Handle parameter declarations 2017-01-10 15:09:09 -05:00
joshvera
ae40908cd2 Update go tests 2017-01-05 17:08:28 -05:00
Timothy Clem
91721682a6 Give BEGIN/END their own Syntax 2016-12-12 15:26:26 -08:00
Timothy Clem
005a5f43d0 Parse BEGIN/END {} for Ruby 2016-12-12 13:41:55 -08:00
Timothy Clem
7fcc5ab88f Merge branch 'master' into ruby-parse-fixes 2016-12-12 09:15:01 -08:00
Timothy Clem
5b10012466 Parse Ruby scope operator 2016-12-12 08:30:43 -08:00
Timothy Clem
1741cef639 Parse Ruby range expressions 2016-12-11 08:36:26 -08:00
Timothy Clem
e9f8014e50 Add singleton_class category to Split 2016-12-09 16:15:49 -08:00
Timothy Clem
5db5376d93 Remove some unused imports 2016-12-09 14:52:36 -08:00
Timothy Clem
fcff364131 Remove old cata approach 2016-12-09 14:47:35 -08:00
Timothy Clem
d84537ec42 Add some style to these guards 2016-12-09 14:47:00 -08:00
Timothy Clem
df7e016c60 Collapse up parse to product json and sexp output 2016-12-09 14:32:22 -08:00
Timothy Clem
772265e0bb Rename s/test/sexpression 2016-12-09 11:42:32 -08:00
Timothy Clem
2ef173b934 Sexpr diffs show source spans and pad/indent properly 2016-12-09 11:30:41 -08:00
Timothy Clem
b16b8ecb87 Rework as top down recursion to print diff trees 2016-12-09 09:47:51 -08:00
Timothy Clem
686b0dffff Add new sexp style test output for diffs 2016-12-09 08:31:13 -08:00
Timothy Clem
aa26c5472e Properly parse classes (with new tree-sitter trees) 2016-12-07 10:45:55 -08:00
joshvera
076afb77ec update tests 2016-12-07 13:26:31 -05:00
joshvera
563652355d Add ArrayTy, DictionaryTy, StructTy, Struct 2016-12-06 16:09:04 -05:00
Timothy Clem
3e3ea818eb Move to where ConditionalOperator was 2016-12-06 12:47:16 -08:00
Timothy Clem
6e42369ffe Collapse up math assignment into operator assignment syntax 2016-12-06 12:36:56 -08:00
Timothy Clem
048ac119ed Remove need for Binary and Unary - just use operator instead. 2016-12-06 11:43:20 -08:00
Timothy Clem
97c17a1b5c Just moving operator_assignment around 2016-12-06 11:42:41 -08:00
Timothy Clem
907d9d6cff Update termConstruction for ruby with new unary and binary 2016-12-06 11:23:10 -08:00
Rick Winfrey
171544de29 Merge branch 'master' into javascript-improvements 2016-12-05 18:07:51 -06:00
joshvera
e9489780d6 Add support for float literals and var assignments 2016-12-01 15:33:37 -05:00
Rick Winfrey
859820cfb2 Added support for Continue statements in JavaScript 2016-11-30 15:40:06 -06:00
Rick Winfrey
d32e94bab1 Add break to renderers 2016-11-30 15:30:39 -06:00
Josh Vera
80ca5d2068 Merge branch 'master' into formatting 2016-11-29 19:12:50 -05:00
Rick Winfrey
758b631ea7 Make function formatting consistent in Renderer.JSON.hs 2016-11-23 15:13:45 -06:00
Rick Winfrey
bab0debf6d Merge branch 'master' into parser-option 2016-11-22 15:19:30 -06:00
joshvera
c434f79162 Merge remote-tracking branch 'origin/master' into go-parser 2016-11-22 11:30:48 -05:00
joshvera
fbd87fc618 exhaust some cases 2016-11-21 16:20:55 -05:00
joshvera
2ea54313a4 Add type conversions 2016-11-21 15:44:31 -05:00
joshvera
30a3961409 Add go, defer, and subscript access statements 2016-11-14 19:05:02 -05:00
joshvera
6e248e76f0 Add select statements 2016-11-14 17:47:04 -05:00
joshvera
8dbac2c98a switch statements 2016-11-10 16:19:53 -05:00
Timothy Clem
59356c0395 Spell out parameter 2016-11-10 12:55:06 -08:00
Timothy Clem
9ca3308ea4 Updates for new tree-sitter productions 2016-11-10 09:56:36 -08:00
Timothy Clem
f62269b7e9 Fill out split categories 2016-11-09 14:38:41 -08:00
Timothy Clem
d98d96688d Support keyword and hash arguments in Ruby 2016-11-09 10:48:50 -08:00
Timothy Clem
8d9e864b0a Track changes to ruby rescue productions 2016-11-09 10:48:22 -08:00
Timothy Clem
41442873e0 Proper source ranges for Negate 2016-11-07 14:23:17 -08:00
Timothy Clem
ba9e0424ff Implement until as a negation of while 2016-11-07 13:33:41 -08:00
Timothy Clem
cafcd8fd91 Implement unless as a Negate syntax 2016-11-07 13:12:53 -08:00
Timothy Clem
b541a903dd Collapse up Ruby begin with Try syntax 2016-11-07 10:26:59 -08:00
Timothy Clem
ce2dbacde8 s/LastException/RescuedException 2016-11-07 08:00:06 -08:00
Timothy Clem
2b195508fd Streamline block expression 2016-11-04 15:45:26 -07:00
Timothy Clem
5705393b10 Remove Args syntax entirely! 2016-11-04 13:42:06 -07:00
Timothy Clem
437522f5e1 Remove need for Params syntax 2016-11-04 13:05:28 -07:00
Timothy Clem
c02c32ac7c Back to a single Rescue syntax 2016-11-04 12:29:02 -07:00
Rick Winfrey
741e34a16b Add type annotation 2016-11-03 16:50:11 -05:00
Timothy Clem
c6856025f3 Add params syntax to JSON 2016-11-03 14:37:40 -07:00
Timothy Clem
769413813c Better begin and method declaration parsing and summaries 2016-11-03 14:24:05 -07:00
Timothy Clem
452d795ddd Merge remote-tracking branch 'origin/master' into more-ruby-parsing 2016-11-03 09:26:35 -07:00
Timothy Clem
4daf39476e Parse rescue modifiers 2016-11-03 09:23:35 -07:00
Timothy Clem
18c7914216 Match Rescue syntax in JSON renderer 2016-11-02 17:23:28 -07:00
Timothy Clem
a98185f1a6 Rescue blocks in all their glory 2016-11-02 17:18:09 -07:00
joshvera
0d58e97070 Merge remote-tracking branch 'origin/master' into go-parser 2016-11-02 15:25:50 -04:00
joshvera
23b91cf097 add missing cases 2016-11-02 10:54:13 -04:00
Rick Winfrey
1cd998ff88 Merge branch 'master' into syntax-term-to-json 2016-11-01 17:58:15 -05:00
Rick Winfrey
f1b92d9a9e Revert JSONSyntaxTerm back to ToJSON instance 2016-11-01 16:39:33 -05:00
Rick Winfrey
9168795a1d Add newtype JSONSyntaxTerm ToJSON instance 2016-11-01 15:02:26 -05:00
Timothy Clem
6cac25d2a9 Merge remote-tracking branch 'origin/master' into ruby 2016-11-01 08:50:54 -07:00
Rick Winfrey
582e7ce978 Remove NamespaceImport Category (unrelated change) 2016-11-01 10:09:05 -05:00
Rick Winfrey
aa724c4159 Preserve original type class constraint order 2016-10-28 07:56:26 -05:00
Rick Winfrey
3a073a2849 Add NamespaceImport category to Split Renderer 2016-10-26 17:13:29 -05:00
Timothy Clem
5dd53c0b93 if/unless modifiers and (sort of) unless statements 2016-10-26 14:49:51 -07:00
Timothy Clem
3bbfb765a5 Parse if, with some caveats 2016-10-26 14:32:08 -07:00
Timothy Clem
013f6392ff Parse while and until statements and modifiers 2016-10-26 12:54:21 -07:00
Timothy Clem
1b6c70f4ee Parse yield and return 2016-10-26 10:27:38 -07:00
Timothy Clem
3d13f570be Add ConditionalAssignment to JSON output 2016-10-24 10:56:08 -07:00
Timothy Clem
56c2dae42f Bring in LOTS more of the ruby grammar 2016-10-24 10:43:31 -07:00
Rick Winfrey
a6480e3e51 Make consistent terms and language
In many cases, we don’t need to identify the syntax / category for a
term in the names of the fields.

We were using mixed abbreviations and full words. I’ve opted to always
use full words.
2016-10-24 12:25:20 -05:00
Rick Winfrey
f546eb3d60 Move patchFields 2016-10-24 12:24:15 -05:00
Rick Winfrey
52535ece24 Let the instances breathe 2016-10-24 12:24:03 -05:00
Rick Winfrey
9d9020c409 Extract syntaxToTermField function 2016-10-24 11:06:41 -05:00
Rick Winfrey
ddd0536cc3 Moves 2016-10-24 10:30:08 -05:00
Rick Winfrey
881d68dc2c Add Operator 2016-10-24 10:27:03 -05:00
Rick Winfrey
4ee94d12b5 Move MemberAccess 2016-10-24 10:26:54 -05:00
Rick Winfrey
fef0a4b24f Add MathAssignment 2016-10-24 10:25:49 -05:00
Rick Winfrey
6be772fe7b Move to replicate order in Syntax 2016-10-24 10:25:40 -05:00
Timothy Clem
ce0f690af3 Add interpolation to split output 2016-10-21 15:14:16 -07:00
Rick Winfrey
469b76d82b Remove redundant imports 2016-10-18 10:44:36 -05:00
Rick Winfrey
5149ff100f Update Summary.hs to use DefaultFields 2016-10-18 10:43:05 -05:00
joshvera
d95283f4a1 Merge remote-tracking branch 'origin/master' into add-source-spans 2016-10-11 10:45:22 -04:00
Rick Winfrey
7b24a6ba22 Add Import and Export render cases 2016-10-06 18:21:59 -05:00
joshvera
15cd4777e6 Add SourceSpans to customize ToJSON output for These SourceSpan SourceSpan 2016-10-06 17:55:54 -04:00
joshvera
ecf34e5d6e Output source spans to JSON 2016-10-06 13:12:40 -04:00
joshvera
7ba5607cc8 Add source spans to terms 2016-10-05 17:27:45 -04:00
joshvera
4f41619c8e Merge remote-tracking branch 'origin/master' into rws-large-diffs 2016-10-05 12:17:29 -04:00
Rick Winfrey
c6cf6fab4a Add missing cases for new Module Syntax constructor 2016-10-03 17:37:50 -05:00
joshvera
bfe57829d6 Merge remote-tracking branch 'origin/master' into rws-large-diffs 2016-09-27 10:34:19 -04:00
Timothy Clem
0b2f26a077 Merge remote-tracking branch 'origin/master' into improve-number-summaries 2016-09-19 13:08:15 -07:00
Rob Rix
38d6bbe644 Merge branch 'master' into ghc8 2016-09-17 20:45:58 -04:00
Timothy Clem
eadde3b9a8 Introduce a MathOperator 2016-09-16 15:20:55 -07:00
Timothy Clem
a1250e7896 s/BinaryOperator/BooleanOperator 2016-09-16 15:20:36 -07:00
joshvera
6665f0b6b1 remove imports 2016-09-16 11:36:45 -04:00
Rob Rix
025502729d Correct for precedence. 2016-09-15 17:54:33 -04:00
Rob Rix
996f9f5fa7 Define <> locally. 2016-09-14 19:26:41 -04:00
Rob Rix
aa240c4e63 🔥 a slew of redundant constraints. 2016-09-14 19:23:54 -04:00
Rob Rix
62196878fa Merge branch 'master' into ghc8
# Conflicts:
#	semantic-diff.cabal
#	src/Diff.hs
#	src/Term.hs
#	src/Term/Arbitrary.hs
#	stack.yaml
#	tools/semantic-git-diff/src/SemanticDiff.hs
2016-09-14 16:12:47 -04:00
Timothy Clem
68d932594e Add in NumberLiteral category 2016-09-12 21:06:53 -07:00
Rob Rix
902a3f20d8 🔥 a redundant import. 2016-09-12 13:43:23 -04:00
Rob Rix
2b933904c9 Add specializations of Term/TermF/Diff/DiffF/SplitDiff over Syntax/Record. 2016-09-12 13:40:22 -04:00
Rob Rix
98637ad656 Generalize Term/TermF & Diff/DiffF over the functor. 2016-09-09 14:46:50 -04:00
joshvera
6c09ff32be Add comma_operator split Category 2016-09-07 15:00:49 -07:00
joshvera
7c394ff6dd Union the inner maps 2016-08-24 17:07:43 -04:00
joshvera
b290e49000 Don't include keys if no changes or errors 2016-08-24 15:46:50 -04:00
joshvera
6026d03205 Remove redundant imports 2016-08-24 15:37:55 -04:00
joshvera
e58438f4d9 Return a Map Text [Map Text [Text]] from summaries 2016-08-24 15:27:54 -04:00
joshvera
8d98d8564b indentation 2016-08-24 14:07:30 -04:00
joshvera
ceb664710b Remove redundant constraints 2016-08-24 14:00:34 -04:00
joshvera
439724e430 Don't infix isPrefixOf 2016-08-24 13:59:34 -04:00
joshvera
d4f931e318 formatting 2016-08-23 18:35:35 -04:00
joshvera
341b0af86e Remove unused langauge extensions 2016-08-23 18:33:57 -04:00
joshvera
9b886306ea Partition based off new error prefix 2016-08-23 18:18:36 -04:00
joshvera
96b2107b87 Merge remote-tracking branch 'origin/master' into api-changes 2016-08-23 14:54:47 -04:00
Rob Rix
5cbbfa552a Merge branch 'master' into empty-statements 2016-08-23 10:49:06 -04:00
Rick Winfrey
1207347658 Add JSON renderer case for AnonymousFunction 2016-08-22 18:58:56 -05:00
Rick Winfrey
8a61e57eed Make style names consistent (should use '_' instead of '-') 2016-08-22 18:55:34 -05:00
Rick Winfrey
2374cb8548 Remove overlapping CommaOperator case 2016-08-22 18:55:12 -05:00
joshvera
24af60c80f Remove uses of HashMap for rendering 2016-08-22 10:33:11 -04:00
joshvera
7541160bc3 WIP 2016-08-21 21:51:48 -04:00
joshvera
130724d054 Partition changes and errors into { changes:, errors: } 2016-08-20 00:18:33 -04:00
joshvera
bbc2c2b9b2 Add the empty statement 2016-08-19 15:53:04 -04:00
Rick Winfrey
d9d743f292 Merge branch 'master' into binary-relations-are-relational 2016-08-17 16:31:04 -05:00
Rick Winfrey
b86b3218dc Merge branch 'master' into method-call-improvements 2016-08-17 16:20:01 -05:00
Rick Winfrey
ed3fab42c3 Render RelationalOperator 2016-08-17 11:54:40 -05:00
Rick Winfrey
3dae5cb2f8 Update Split to account for newly added CommaOperator and BitwiseOperator constructors 2016-08-17 11:00:47 -05:00
joshvera
c16effb699 Add comma operator to Split 2016-08-17 11:00:17 -04:00
Rick Winfrey
cb3a709540 Add missing Comment Category to Split styles 2016-08-16 15:36:36 -05:00
joshvera
e209199016 Add If constructor to Syntax 2016-08-11 17:39:44 -04:00
joshvera
59932277f9 Merge remote-tracking branch 'origin/master' into one-json-to-rule-them-all 2016-08-10 13:49:26 -04:00
joshvera
7a9f0b7786 Output file path as summary key 2016-08-10 13:38:18 -04:00
joshvera
2933a24d45 Return Output from json, split, summary, and patch 2016-08-09 18:51:44 -04:00
joshvera
9df1399168 output the inserted/deleted path in the patch header 2016-08-09 16:14:46 -04:00
joshvera
29536db80b Don't output filepaths when adding or deleting an empty file 2016-08-08 15:18:22 -04:00
Rob Rix
70c6b42e69 Add the missing pattern match over methods. 2016-08-04 10:04:33 -04:00
joshvera
36c4001682 Merge remote-tracking branch 'origin/master' into throw-syntax 2016-08-01 13:55:44 -04:00
joshvera
ef4389a5c5 Merge remote-tracking branch 'origin/master' into constructors 2016-08-01 13:49:35 -04:00
joshvera
9bd34fe3ff Merge remote-tracking branch 'origin/master' into try-syntax 2016-08-01 13:38:50 -04:00
joshvera
b458d28c57 Merge remote-tracking branch 'origin/master' into array-syntax 2016-08-01 13:30:37 -04:00
joshvera
b2c66eb5ce Add Constructor to Split.styleName 2016-07-30 14:26:59 -04:00
joshvera
b68a2d8bff Add constructor to JSON 2016-07-30 14:26:48 -04:00
joshvera
69e2c99634 update Method JSON 2016-07-30 13:26:21 -04:00
joshvera
1c5f94631c s/diffSummary/diffSummaries 2016-07-29 18:38:46 -04:00
joshvera
a18305da09 qualify Aeson.Array as A.Array 2016-07-29 16:50:10 -04:00
joshvera
5bef010970 Don't need to scope ArrayLiteral in styleName 2016-07-29 16:46:16 -04:00
joshvera
65c9d53c6b Add ArrayLiteral to Split.styleName 2016-07-29 16:45:07 -04:00
joshvera
ce0c19e279 Add class to styleName 2016-07-29 16:31:19 -04:00
joshvera
1fb7ff4016 Add Class to JSON 2016-07-29 16:31:00 -04:00
joshvera
2de0afbe95 Add Try/Catch/Finally to Split 2016-07-29 15:59:14 -04:00
joshvera
0c8f13f396 Add Try case to JSON 2016-07-29 15:59:05 -04:00
joshvera
a3d9a69f65 Remove redundant Range 2016-07-29 15:37:05 -04:00
joshvera
c70273b899 Add Throw to Split 2016-07-29 15:34:15 -04:00
joshvera
14c9f3f7a6 Add Throw to JSON 2016-07-29 15:33:51 -04:00
joshvera
5e877cc3e9 Remove some redundant imports 2016-07-29 14:31:15 -04:00
joshvera
05b4257711 Take sources instead of blobs to simplify diffSummary interface 2016-07-29 14:20:35 -04:00
joshvera
aa99744db7 Remove SourceSpan from Record 2016-07-29 14:12:44 -04:00
joshvera
f7286f927c Construct errors with a SourceSpan 2016-07-29 14:05:11 -04:00
joshvera
ce3857320f Pass SourceBlobs to diffSummary 2016-07-29 12:59:07 -04:00
joshvera
4493751dd7 Merge remote-tracking branch 'origin/master' into error-syntax 2016-07-29 12:18:14 -04:00
joshvera
fbc9e335a3 Merge remote-tracking branch 'origin/master' into error-syntax 2016-07-29 11:44:38 -04:00
joshvera
7f3cb2e9ef Merge remote-tracking branch 'origin/master' into loop-syntax 2016-07-29 11:42:25 -04:00
joshvera
c45f251b3d parse For exprs 2016-07-28 16:34:07 -04:00
joshvera
d057e156cd Add Return case to Syntax 2016-07-28 14:34:53 -04:00
joshvera
7eac130089 Add DoWhile and While cases 2016-07-28 14:08:34 -04:00
joshvera
8c52bf91b5 Add a For case to styleName 2016-07-28 13:50:08 -04:00
joshvera
bf9e385448 Print the source span when printing error node diff summaries 2016-07-27 18:18:55 -04:00
joshvera
be82432aa0 Add an error JSON case 2016-07-26 14:49:14 -04:00
joshvera
033200ac10 Merge branch 'property-tests' into error-syntax 2016-07-26 13:55:34 -04:00
joshvera
4809ad0f2f Use bind 2016-07-26 13:44:12 -04:00
joshvera
de1088f490 Remove redundant import 2016-07-25 14:56:43 -04:00
joshvera
771f37df0b Add styleName mapping to Category.Error 2016-07-25 14:56:33 -04:00
joshvera
485fc884a4 Merge branch 'syntax-redux' into property-tests 2016-07-22 14:39:54 -04:00
joshvera
70f9329f1a Merge remote-tracking branch 'origin/master' into syntax-redux 2016-07-22 12:36:03 -04:00
joshvera
ac36cf5bcc Pretty print diff summaries as lists of LeafInfo Docs 2016-07-15 17:06:41 -04:00
Rob Rix
e08fbd141f 📝 Cell. 2016-07-15 11:16:30 -04:00
Rob Rix
9a75c03c1e 🔥 unused field accessors. 2016-07-15 11:15:42 -04:00
Rob Rix
aa5c870e52 🔥 maybeFirst. 2016-07-15 11:15:04 -04:00
Rob Rix
6f0a55a487 Only export split. 2016-07-15 11:14:43 -04:00
Rob Rix
6859cba690 Don’t annotate with term costs. 2016-07-15 11:13:59 -04:00
Rob Rix
274c831e72 Don’t annotate zero-cost nodes. 2016-07-15 11:11:04 -04:00
Rob Rix
81279c910e Split out the attributes into separate functions. 2016-07-15 11:05:39 -04:00
Rob Rix
1cb3656502 Uniform split rendering of branches. 2016-07-15 10:53:43 -04:00
Rob Rix
08246f3a4c Simplify the catamorphism over terms/split diffs. 2016-07-15 10:52:28 -04:00
Rob Rix
7e3b470631 Repackage Renderable up with source & other. 2016-07-15 10:51:18 -04:00
Rob Rix
29812c4095 Use a strict Line type in split rendering. 2016-07-15 10:46:51 -04:00
Rob Rix
e5ad1d1c42 Use a strict Cell type in split rendering. 2016-07-15 09:59:23 -04:00
Rob Rix
7e4c68d182 Group all the ToMarkup instances together. 2016-07-15 09:55:29 -04:00
Rob Rix
b2fdfdba66 Placate hlint. 2016-07-15 09:55:00 -04:00
Rob Rix
aad375951f Render the Cost instead of the Size in Split diffs. 2016-07-15 09:52:25 -04:00
Rob Rix
0a4c91c784 Remove some redundant imports. 2016-07-14 16:38:44 -04:00
Rob Rix
300bd2b84c Renderer takes an annotation type parameter. 2016-07-14 16:36:47 -04:00
Rob Rix
1a2004fc78 Generalize split rendering over extensible record annotations. 2016-07-14 16:11:06 -04:00
Rob Rix
548b7936a7 Generalize patch rendering over extensible record annotations. 2016-07-14 16:10:51 -04:00
Rob Rix
efe868b01a Generalize the ToJSON instances over extensible record annotations. 2016-07-14 16:10:29 -04:00
Rob Rix
4d6ab97691 Placate hlint. 2016-07-14 15:53:52 -04:00
joshvera
27c338331f Merge remote-tracking branch 'origin/master' into syntax-redux 2016-07-14 15:22:46 -04:00
joshvera
453334d966 Use wl-pprint-text to pretty print diff summaries 2016-07-14 14:44:18 -04:00
joshvera
58ff433dd0 Merge remote-tracking branch 'origin/master' into pretty-print-summaries 2016-07-14 14:38:46 -04:00
joshvera
7169a51265 Use wl-pprint-text to pretty print diff summaries 2016-07-13 11:58:43 -04:00
Rob Rix
4f967e0e1a 🔥 Data.OrderedMap. 2016-07-12 23:27:20 -04:00
Rob Rix
bc05e694a3 🔥 Keyed syntax nodes. 2016-07-12 23:27:09 -04:00
joshvera
28457049f2 Add some vertical space to ease debugging 2016-07-08 15:19:43 -04:00
joshvera
3ee4c062d6 import Category as C 2016-07-08 13:16:23 -04:00
joshvera
73afe7d1e9 Add zipTerms to Pairs 2016-07-08 13:16:06 -04:00
joshvera
d99df9b8cb Add Comment/Commented/Pair cases to Renderer.Split 2016-07-08 12:04:24 -04:00
joshvera
fdb7a8bc04 Add more JSON cases 2016-07-08 12:01:10 -04:00
joshvera
576b5ef4fb import Syntax as S 2016-07-08 11:50:25 -04:00
joshvera
8755c84466 scope Pair 2016-07-08 11:18:02 -04:00
joshvera
99b05ebdc1 Object takes a list of f now 2016-07-08 11:17:46 -04:00
joshvera
9f8ddbd64d Add Object case to styleName 2016-07-06 12:38:47 -04:00
joshvera
ee599f6fa0 Add an Object case to Split 2016-07-06 12:38:47 -04:00
Rob Rix
bbab043a35 Merge pull request #623 from github/semantic-git-diff-test-harness
Test harness for semantic-git-diff
2016-06-28 22:14:39 -04:00
Rick Winfrey
6f5a573ad4 Simplify encoding of diff summaries as JSON 2016-06-28 15:24:24 -05:00
joshvera
0b664ef68e cleanup hlint warnings 2016-06-23 17:47:01 -04:00