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

9007 Commits

Author SHA1 Message Date
Josh Vera
eb18f085e9 Merge pull request #858 from github/annotate-nested-parent-contexts
Annotate nested parent contexts
2016-10-05 12:05:38 -04:00
Josh Vera
590fd0d295 Merge branch 'master' into annotate-nested-parent-contexts 2016-10-05 11:59:41 -04:00
joshvera
07b7b7598e Rename prependSummary to appendSummary and update tests 2016-10-05 11:56:42 -04:00
joshvera
0fb363f59e Append parent annotation 2016-10-05 11:55:41 -04:00
joshvera
3dcf54bd82 Tweak parentContexts function to output something like Replaced the 'arg4' identifier with the 'arg2' identifier in the console.log(arg2) method call of the 'child' function 2016-10-05 11:41:28 -04:00
joshvera
d7a96e0af7 Remove redundant brackets 2016-10-05 11:38:09 -04:00
joshvera
fbee0ac890 Use utf8 instead of utf8_bom 2016-10-04 15:32:29 -04:00
joshvera
5ce4a304c2 Lookup LANG and set a default if it's Nothing 2016-10-04 15:22:50 -04:00
Timothy Clem
a266b80912 Set stdout encoding to utf8 2016-10-04 12:02:40 -07:00
joshvera
086723acd5 Use putStrLn when no output is given 2016-10-04 13:16:38 -04:00
joshvera
954dfbd3bb ++tree-sitter-parsers for async/await and import statements 2016-10-04 12:49:09 -04:00
Rick Winfrey
397bc04ad5 Limit to one existing parentAnnotation 2016-10-04 11:07:58 -05:00
joshvera
7eb58dfcd9 Merge remote-tracking branch 'origin/master' into rws-large-diffs 2016-10-03 19:25:40 -04:00
joshvera
1f52815f9c Merge 'origin/master' into rws-large-diffs 2016-10-03 19:02:36 -04:00
joshvera
e53f83ea6a Alternate through both sides of the diff when in diffToDiffSummaries annotateWithCategory function 2016-10-03 18:55:04 -04:00
Rick Winfrey
c6cf6fab4a Add missing cases for new Module Syntax constructor 2016-10-03 17:37:50 -05:00
Rick Winfrey
11ee91c430 Add Module Category to list of Annotatable categories 2016-10-03 17:21:19 -05:00
Rick Winfrey
6422f19170 Add Module Category 2016-10-03 17:18:09 -05:00
Rick Winfrey
af1a952348 Add Module syntax 2016-10-03 17:17:03 -05:00
Rick Winfrey
cf64cf41d9 Update DiffSummarySpec 2016-10-03 16:39:29 -05:00
Rick Winfrey
066ea97a75 Prepend at most two contexts; extract common function 2016-10-03 16:24:30 -05:00
Rick Winfrey
51d60902ed Add documentation for prependSummary 2016-10-03 16:23:49 -05:00
Josh Vera
03c97ac5e7 Merge pull request #856 from github/write-to-output-format
Obey --output argument
2016-10-03 16:18:06 -04:00
Rick Winfrey
df08cb7c79 Merge branch 'master' into parent-context 2016-10-03 15:08:34 -05:00
Rick Winfrey
150127f99b Limit syntaxes that are annotatable to subset of those syntaxes that are identifiable 2016-10-03 14:24:50 -05:00
Timothy Clem
c1aa35f586 Obey --output argument 2016-10-03 10:49:10 -07:00
Josh Vera
efe4130fbe Merge pull request #854 from github/remove-semantic-difftool
Remove semantic difftool
2016-10-03 12:10:59 -04:00
Timothy Clem
3f7bb0a3ff Update atom build package config 2016-09-30 16:08:19 -07:00
Josh Vera
fce9e0a71b Merge pull request #852 from github/09-30-2016-weekly
Add 2016-09-30 weekly notes
2016-09-30 17:45:24 -04:00
Josh Vera
1b6a7dc59a Merge branch 'master' into 09-30-2016-weekly 2016-09-30 17:38:01 -04:00
Josh Vera
9c9a0054e8 Merge pull request #841 from github/diff-with-no-index
Introduce --no-index switch to diff two files
2016-09-30 17:37:48 -04:00
Josh Vera
43ab2a644c Merge branch 'master' into diff-with-no-index 2016-09-30 17:35:20 -04:00
Josh Vera
670f721a97 Merge branch 'master' into 09-30-2016-weekly 2016-09-30 17:35:04 -04:00
Josh Vera
cef4a7c772 Merge pull request #853 from github/improve-string-identifier-summaries
Improve string identifier summaries
2016-09-30 17:34:50 -04:00
Timothy Clem
45a12c54f0 Fix testDiff in DiffSummarySpecs too 2016-09-30 14:15:02 -07:00
Timothy Clem
4f1a609bda Catch string identifiers and skip squoting 2016-09-30 14:09:30 -07:00
Timothy Clem
60e86181aa New DiffMode datatype instead of noIndex Bool 2016-09-30 13:52:31 -07:00
Rick Winfrey
46353c763f Add 2016-09-30 weekly notes 2016-09-30 15:14:17 -05:00
Josh Vera
5f9866f04d Merge branch 'master' into diff-with-no-index 2016-09-30 14:56:14 -04:00
Rick Winfrey
bc02700086 Merge branch 'master' into parent-context 2016-09-30 10:49:46 -05:00
Rick Winfrey
ee4a89bfea Update prependSummary so all Annotatable terms are prepended to the parentAnnotation
Since the paramorphism works by starting at leaves and working towards
the roots, prepending parentAnnotations with the current term means we
always ascribe parent contexts in the correct order (parent -> child ->
grand child …)
2016-09-30 10:03:11 -05:00
Rick Winfrey
9691d1269c Update DiffSummary arbitrary instance (🔥 grandParentAnnotation) 2016-09-30 10:02:02 -05:00
Rick Winfrey
54eec372bf Add parentContexts (and hsep)
hsep :: [Doc] -> Doc
The document (hsep xs) concatenates all documents xs horizontally with
(<+>).

(From Text.PrettyPrint.Leijen)
2016-09-30 10:01:33 -05:00
Rick Winfrey
197d8dc0af 🔥 maybeParentContext and maybeGrandParentContext 2016-09-30 10:00:33 -05:00
Rick Winfrey
b0fb1d4a6b 🔥 grandParentAnnotation
Also convert parentAnnotation to a [(Category, Text)], rather than
Maybe (Category, Text)
2016-09-30 10:00:03 -05:00
Rick Winfrey
243727d1b1 Remove doc formatting separator 2016-09-29 18:50:50 -05:00
Rick Winfrey
d42e79c189 Use annotatable smart constructor for determining grandParentAnnotation 2016-09-29 18:50:36 -05:00
Rick Winfrey
497421250f Add annotatable smart constructor 2016-09-29 18:50:19 -05:00
Timothy Clem
e18da624da Whoops, remove my test files 2016-09-29 16:25:26 -07:00
Timothy Clem
d03a0c78f7 Better to have these as their own data records 2016-09-29 16:22:45 -07:00