1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
Commit Graph

3805 Commits

Author SHA1 Message Date
Rob Rix
bdafdb8f5f Merge branch 'master' into parse-performance 2015-12-27 12:27:07 -05:00
Josh Vera
e795d2434a Merge pull request #357 from github/split-refactoring
Split refactoring
2015-12-27 09:23:20 -08:00
Josh Vera
821930cf84 Merge pull request #360 from github/strictness
Strictness
2015-12-27 09:21:13 -08:00
Rob Rix
9d3570c88a Merge branch 'split-performance' into parse-performance 2015-12-27 12:20:31 -05:00
Rob Rix
35bbab0868 Merge branch 'profiling-improvements' into split-performance 2015-12-27 12:19:18 -05:00
Rob Rix
df7a51266a Merge branch 'strictness' into profiling-improvements 2015-12-27 12:16:55 -05:00
Rob Rix
be4b25b335 Merge branch 'split-refactoring' into split-performance 2015-12-27 12:16:30 -05:00
Rob Rix
cb56c621e0 Whoops. 2015-12-27 12:16:19 -05:00
Rob Rix
518c0b69b6 Merge branch 'master' into split-refactoring
# Conflicts:
#	src/Range.hs
2015-12-27 12:14:08 -05:00
Rob Rix
faea10ffda Merge branch 'master' into strictness 2015-12-27 12:13:17 -05:00
Josh Vera
8b56839992 Merge pull request #359 from github/ffi-ffs
FFI, ffs
2015-12-26 09:16:29 -08:00
Josh Vera
46ca05e0b4 Merge pull request #355 from github/split-property-tests
Split property tests
2015-12-26 09:07:50 -08:00
Rob Rix
49e5ce5b73 Merge branch 'profiling-improvements' into split-performance 2015-12-24 20:06:04 -05:00
Rob Rix
dfc5fbee04 Merge branch 'split-performance' into parse-performance
# Conflicts:
#	src/Range.hs
2015-12-24 10:56:51 -05:00
Rob Rix
9fdd72b8c6 Optimize maybeLast for vector access. 2015-12-24 10:48:58 -05:00
Rob Rix
7a49534034 Use makeLine as appropriate in the tests. 2015-12-24 10:44:40 -05:00
Rob Rix
c786d2d83d Lines are parameterized by Vectors. 2015-12-24 10:41:07 -05:00
Rob Rix
d6faa15321 Implement intercalate over Foldables. 2015-12-24 10:40:56 -05:00
Rob Rix
2644e8f602 Implement intersperse over Foldables. 2015-12-24 10:40:47 -05:00
Rob Rix
162f51016e Use makeLine to construct contextLines. 2015-12-24 10:38:46 -05:00
Rob Rix
d3e8dd867b Add a makeLine function constructing Lines from lists. 2015-12-24 09:53:05 -05:00
Rob Rix
e6e3d9d450 classifyMarkup takes the first category if any. 2015-12-24 09:51:56 -05:00
Rob Rix
e77b3a8bd4 Add maybeFirst over Foldables. 2015-12-24 09:51:47 -05:00
Rob Rix
e1f5986c21 Qualify the import of Source with less chaff. 2015-12-24 09:51:38 -05:00
Rob Rix
093fc26d13 Use Source.null in the guard. 2015-12-24 00:23:36 -05:00
Rob Rix
9343e9d4ae Do all formatting within Sources. 2015-12-24 00:20:47 -05:00
Rob Rix
cfeb9e4ee8 Move actualLines/actualLineRanges into the Source module. 2015-12-24 00:08:17 -05:00
Rob Rix
d355f268e6 Hide ++ in the tests. 2015-12-23 23:44:02 -05:00
Rob Rix
eb461a3915 Concatenate Sources in actualLines. 2015-12-23 23:41:31 -05:00
Rob Rix
4395e49104 Define Source concatenation. 2015-12-23 23:41:08 -05:00
Rob Rix
69aadf4ec5 Rename makeSourcefromList. 2015-12-23 23:37:51 -05:00
Rob Rix
b138864068 Correct the tests. 2015-12-23 23:36:49 -05:00
Rob Rix
3ca9064869 O(1) indexing. 2015-12-23 23:29:27 -05:00
Rob Rix
8a2aca45e1 Tacit definition of null. 2015-12-23 23:28:13 -05:00
Rob Rix
ad6e7f2ae7 Tacit definition of slice. 2015-12-23 23:27:07 -05:00
Rob Rix
0bb6462fad Rename unSource to toList. 2015-12-23 23:26:37 -05:00
Rob Rix
e4225faa20 Rename subsourceslice. 2015-12-23 23:25:00 -05:00
Rob Rix
55d3ed38a4 A let expression makes more sense. 2015-12-23 23:23:16 -05:00
Rob Rix
83173a7b96 Fewer parens. 2015-12-23 23:22:29 -05:00
Rob Rix
03526754e9 subsource uses the correct start/length bounds. 2015-12-23 23:21:51 -05:00
Rob Rix
588b1a68ee Avoid most of the conversions into/out of Source. 2015-12-23 23:17:35 -05:00
Rob Rix
a19115b267 Define break over Source. 2015-12-23 23:16:09 -05:00
Rob Rix
b6e05008ec cons over Source. 2015-12-23 23:06:49 -05:00
Rob Rix
f89b05bb41 Define a getVector function for Source. 2015-12-23 23:06:38 -05:00
Rob Rix
ee91b130e4 Add API to destructure a Source. 2015-12-23 23:05:01 -05:00
Rob Rix
08122476e6 Add API to test whether a Source is empty. 2015-12-23 23:04:50 -05:00
Rob Rix
f3d65ea6db Define actualLines by means of a single conversion to String. 2015-12-23 22:55:44 -05:00
Rob Rix
76f11db98e Define Source over Data.Vector. 2015-12-23 22:48:31 -05:00
Rob Rix
e9449fccb8 Move Source & its API to the Source module. 2015-12-23 22:38:20 -05:00
Rob Rix
cc9dee5704 Stub in a Source module. 2015-12-23 22:38:02 -05:00