1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00
Commit Graph

8663 Commits

Author SHA1 Message Date
Rob Rix
88865f2c09 Traverse nodes within their parent spans. 2016-09-14 02:04:38 -04:00
Rob Rix
da19d6672e Use totalSpan to define errorNode. 2016-09-14 01:58:38 -04:00
Rob Rix
6317228466 Move totalSpan into Source. 2016-09-14 01:57:51 -04:00
Rob Rix
f30fe7b358 Trim out nodes without positions. 2016-09-14 01:56:25 -04:00
Rob Rix
89a769ca35 Convert between 0- and 1-indexed spans. 2016-09-14 01:45:17 -04:00
Rob Rix
27d4cc0775 🔥 an obsolete comment. 2016-09-14 01:44:52 -04:00
Rob Rix
56fd38d9d3 Merge branch 'master' into markdown 2016-09-14 00:12:50 -04:00
Rob Rix
9e36a53f07 Merge pull request #825 from github/icu-fixes
ICU fixes
2016-09-13 16:44:51 -04:00
joshvera
c9d86fc930 ++text-icu 2016-09-13 15:45:44 -04:00
Rob Rix
baba6eec73 🔥 the unused outputPath field from DiffArguments. 2016-09-13 15:40:53 -04:00
Rob Rix
12302e17ed Compute a Range for Markdown nodes. 2016-09-13 15:17:27 -04:00
Rob Rix
a6633a5351 🔥 a redundant binding. 2016-09-13 15:10:49 -04:00
Rob Rix
953bf3ba58 Stop hiding ++, Source doesn’t export it any more. 2016-09-13 15:09:55 -04:00
Rob Rix
85fdc3a807 Correct the computation of the end index. 2016-09-13 15:04:25 -04:00
Rob Rix
1c335df1f0 Verify that sourceSpanToRange computes correct ranges within lines. 2016-09-13 15:04:17 -04:00
Rob Rix
e6f4db8ee8 Compute the insetting of SourceSpans & Ranges. 2016-09-13 15:03:58 -04:00
joshvera
b4a94e27a1 ++text-icu 2016-09-13 15:00:40 -04:00
joshvera
e4a0980cf9 ++text-icu 2016-09-13 14:47:06 -04:00
Rob Rix
50e5f8a411 Verify that sourceSpanToRange computes multi-line ranges. 2016-09-13 14:27:52 -04:00
Rob Rix
8de562b88e Verify that totalSpan covers multiple lines. 2016-09-13 14:27:36 -04:00
Rob Rix
1b890bcde4 Verify that totalSpan covers single lines. 2016-09-13 14:27:29 -04:00
Rob Rix
8bdf162874 Rename the line-by-line test. 2016-09-13 14:27:15 -04:00
Rob Rix
c157962785 Add a helper to compute the total span of some source. 2016-09-13 14:27:05 -04:00
joshvera
37925939ea ++text-icu 2016-09-13 13:51:19 -04:00
joshvera
ac313a6b08 ++text-icu 2016-09-13 13:46:18 -04:00
Rob Rix
6ce0ce5e26 Indentation. 2016-09-13 13:14:02 -04:00
joshvera
ed7778ae18 ++text-icu 2016-09-13 12:43:34 -04:00
Rob Rix
c5fed4ac25 Test sourceSpanToRange across arbitrary sources. 2016-09-13 12:37:59 -04:00
Rob Rix
61dd23789d Rename the test. 2016-09-13 12:32:28 -04:00
Rob Rix
03f3cc01d3 Abstract how lengths are summed. 2016-09-13 12:25:55 -04:00
Rob Rix
66f5d39021 Compute the end index. 2016-09-13 12:24:47 -04:00
Rob Rix
07247e83c0 Compute the start index. 2016-09-13 12:23:47 -04:00
Rob Rix
5459bd4313 🔥 This was wrong. 2016-09-13 12:23:25 -04:00
Rob Rix
77ddc0abd8 Source spans are zero-indexed. 2016-09-13 12:23:05 -04:00
Rob Rix
b7d9ab1875 Add a trivial test of SourceSpan -> Range computation. 2016-09-13 12:09:18 -04:00
Rob Rix
7dc8393953 📝 sourceSpanToRange. 2016-09-13 12:00:41 -04:00
Rob Rix
b3248a4a95 Merge branch 'master' into markdown 2016-09-13 11:59:50 -04:00
Rob Rix
076f5c0d1e Stub in a spec for sourceSpanToRange. 2016-09-13 11:59:46 -04:00
Rob Rix
4603cea555 Stub in a SourceSpan -> Range conversion. 2016-09-13 11:58:55 -04:00
Rob Rix
b5d14e702c Test that actualLineRanges is exhaustive. 2016-09-13 11:56:43 -04:00
Rob Rix
2f0bd6d81f nl at eof 2016-09-13 11:56:32 -04:00
Rob Rix
561d03b6ba 🔥 Source’s definition of ++. 2016-09-13 11:45:30 -04:00
Rob Rix
d7a3747545 Define mappend without reference to Source.++. 2016-09-13 11:44:18 -04:00
Rob Rix
04519db7a9 Verify that actualLineRanges produces the intended # of lines. 2016-09-13 11:39:27 -04:00
Rob Rix
8d5bc01a75 Run the Source spec. 2016-09-13 11:39:05 -04:00
Rob Rix
d8c38b83bb Merge branch 'master' into markdown 2016-09-13 11:35:13 -04:00
Rob Rix
dcc164d09f Add a spec for Source. 2016-09-13 11:35:10 -04:00
Rob Rix
2b34916554 Build and run RangeSpec 😔 2016-09-13 11:18:38 -04:00
Rob Rix
91062f32b8 Merge pull request #822 from github/add-a-link-to-the-roadmap-project
Note the roadmap project.
2016-09-13 10:55:43 -04:00
Rob Rix
2b383bde7e Note the roadmap project. 2016-09-13 10:51:25 -04:00