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

2040 Commits

Author SHA1 Message Date
Rob Rix
3f5812bef5 Explicitly convert the bounds to Int. 2015-11-05 15:40:33 -05:00
Rob Rix
91f67a41b7 Document right. 2015-11-05 12:10:42 -05:00
Rob Rix
e8c5462de1 Document left. 2015-11-05 12:10:17 -05:00
Rob Rix
9c8131e7a2 Document outOf. 2015-11-05 12:09:28 -05:00
Rob Rix
e67f0d6569 Document into. 2015-11-05 12:08:46 -05:00
Rob Rix
f4fff72814 Rename all the up labels. 2015-11-05 12:07:59 -05:00
Rob Rix
3b82364065 Rename the private var. 2015-11-05 12:06:54 -05:00
Rob Rix
ba450bf45a Rename up to outOf. 2015-11-05 12:06:39 -05:00
Rob Rix
825eaa5ac3 Rename the constructor label. 2015-11-05 12:06:04 -05:00
Rob Rix
c8576dcb88 Rename the private _down var too. 2015-11-05 12:05:43 -05:00
Rob Rix
9151d02655 Rename down to into. 2015-11-05 12:05:28 -05:00
Rob Rix
47a1e8eb0c Test that modifications can replace sub-diffs. 2015-11-05 12:02:14 -05:00
Rob Rix
7abe08d60c Comment on the coarse-grained diff. 2015-11-05 12:02:04 -05:00
Rob Rix
5a49baa039 Add a refined diff fixture. 2015-11-05 12:01:47 -05:00
Rob Rix
28437e013f Add a diff fixture. 2015-11-05 11:52:22 -05:00
Rob Rix
318a9926a2 Test that modifications preserve keys. 2015-11-05 11:50:37 -05:00
Rob Rix
7276b42d6f Test deep modifications replacing subtrees. 2015-11-05 11:49:07 -05:00
Rob Rix
d52c5ddedd Test that multiple modifications are not lost. 2015-11-05 11:46:41 -05:00
Rob Rix
b948f10dc1 Test simple updates to subtrees. 2015-11-05 11:46:01 -05:00
Rob Rix
336c2b87b2 Pass updates to keyed collections along correctly. 2015-11-05 11:45:53 -05:00
Rob Rix
917a49c520 Pass updates to collections along correctly. 2015-11-05 11:45:46 -05:00
Rob Rix
59e02988f0 Remove the obsolete unary/binary/ternary constructors. 2015-11-05 11:42:55 -05:00
Rob Rix
65c86a94d8 Use the variadic constructor for the fixed conveniences. 2015-11-05 11:42:33 -05:00
Rob Rix
839a62ff0c Test that locations are sequenced in depth-first pre-order. 2015-11-05 11:38:15 -05:00
Rob Rix
59ef9b1eb4 Test returning to the root. 2015-11-05 11:36:30 -05:00
Rob Rix
96b4d116da Test returning out of deep explorations. 2015-11-05 11:35:16 -05:00
Rob Rix
7a9a97ed03 Test recursive exploration of branches. 2015-11-05 11:34:25 -05:00
Rob Rix
6430f0222e Extract the other inner leaf. 2015-11-05 11:34:18 -05:00
Rob Rix
eda85a1e40 Rename the inner leaf. 2015-11-05 11:33:53 -05:00
Rob Rix
373076ffb3 Extract the keyed branch. 2015-11-05 11:32:00 -05:00
Rob Rix
db616e1dfe Correct the index semantics for keyed explorations. 2015-11-05 11:31:21 -05:00
Rob Rix
07fdfc5abc Test that moving rightward is consistent with the data structure. 2015-11-05 11:29:41 -05:00
Rob Rix
deb3745613 Correct the index updated vs. the index moved to. 2015-11-05 11:29:29 -05:00
Rob Rix
3d0a53a6b4 Test that you can’t move left from the leftmost child of a branch. 2015-11-05 11:15:22 -05:00
Rob Rix
1444acf2a2 Extract another leaf. 2015-11-05 11:14:27 -05:00
Rob Rix
72b1313006 Rename the upper level leaf. 2015-11-05 11:14:04 -05:00
Rob Rix
d37f9bb355 Extract an inner leaf. 2015-11-05 11:13:50 -05:00
Rob Rix
3e0b3797d2 Test that we can move into branches. 2015-11-05 11:10:46 -05:00
Rob Rix
c46426d311 Correct the test of moving back up. 2015-11-05 11:10:08 -05:00
Rob Rix
18aa5bd2d4 Test that we can move back upwards in explorations. 2015-11-05 11:09:36 -05:00
Rob Rix
274fb6bfab Test that leaves are not branches. 2015-11-05 10:57:41 -05:00
Rob Rix
d0c9f27975 Test that the start of exploration can’t move sideways. 2015-11-05 10:57:30 -05:00
Rob Rix
23725c7fd6 Test that exploration starts at a root. 2015-11-05 10:57:07 -05:00
Rob Rix
1ec85928a3 Test the start of exploration. 2015-11-05 10:56:55 -05:00
Rob Rix
f13d2068ab Add some test fixtures. 2015-11-05 10:56:36 -05:00
Rob Rix
b60e3aac24 Stub in a test suite for Location. 2015-11-05 10:56:15 -05:00
Rob Rix
4d867db4c4 Cofree can be explored. 2015-11-05 10:45:21 -05:00
Rob Rix
224f636f9b Remove a bogus default case. 2015-11-05 10:34:27 -05:00
Rob Rix
c6baaf677d Explore Keyed nodes. 2015-11-05 10:33:54 -05:00
Rob Rix
e6429cee40 Convenience helper for keyed locations. 2015-11-05 10:33:49 -05:00
Rob Rix
ccbb3f1bb4 Constructor for keyed locations. 2015-11-05 10:33:43 -05:00
Rob Rix
703db77789 Generalize the helper method to arbitrary mutable collection types. 2015-11-04 16:57:03 -05:00
Rob Rix
50518da5e1 Generalize the variadic constructor to arbitrary mutable collections. 2015-11-04 16:47:39 -05:00
Rob Rix
ad0dffe20c Explore Fixed terms in diffs. 2015-11-04 16:34:47 -05:00
Rob Rix
51166a0e0f Explore Indexed terms in diffs. 2015-11-04 16:34:37 -05:00
Rob Rix
51293d2202 Variadic branch convenience constructor. 2015-11-04 16:34:20 -05:00
Rob Rix
bac71d1f24 Construct Location over variadic branches. 2015-11-04 16:34:03 -05:00
Rob Rix
80a29789ad Patches & leaves are nullary. 2015-11-04 16:22:42 -05:00
Rob Rix
29645e0d99 Stub in Free.explore() 2015-11-04 16:22:29 -05:00
Rob Rix
d362c1b26f Formatting. 2015-11-04 16:15:26 -05:00
Rob Rix
63aaa39ba4 The private properties are implementation details. 2015-11-04 16:14:43 -05:00
joshvera
d99000562b ++Madness 2015-11-04 16:07:25 -05:00
joshvera
aeaabfd6a9 update Info.== 2015-11-04 16:06:54 -05:00
joshvera
eff47e0a3e Construct terms with line and column info 2015-11-04 15:12:22 -05:00
joshvera
dd8d4bac2c Parameterize CofreeJSON by SourcePos 2015-11-04 15:11:35 -05:00
joshvera
92c4141b44 bump Madness 2015-11-04 15:11:09 -05:00
joshvera
2cb3521cb0 Pass Line and Column to Info 2015-11-04 15:11:01 -05:00
Rob Rix
c1f3b5e01f Reference the specific section of Weaving a Web implemented. 2015-11-04 12:50:34 -05:00
Rob Rix
31dd09a080 Document Location. 2015-11-04 12:43:50 -05:00
Rob Rix
920c08c80e Document a couple of fields. 2015-11-04 12:43:46 -05:00
Rob Rix
d29277a60a Correct a couple of comments. 2015-11-04 12:43:37 -05:00
joshvera
26dd51eb49 Merge remote-tracking branch 'origin/master' into line-numbers 2015-11-04 12:34:59 -05:00
joshvera
a8e378cafa ++Madness 2015-11-04 12:34:36 -05:00
Rob Rix
03def65a8e Add Location. 2015-11-04 12:11:18 -05:00
joshvera
7f014eff8e Merge branch 'master' into syntax-highlighting 2015-11-03 17:09:06 -05:00
Rob Rix
5b23d62b48 Split mode. 2015-11-03 15:38:59 -05:00
Rob Rix
9e1ceccc77 Highlight for/in statements. 2015-11-03 15:30:34 -05:00
Rob Rix
e096881578 Rename rangeAndSyntaxToDOM. 2015-11-03 15:26:32 -05:00
Rob Rix
f5c21074c5 Don’t flatten terms. 2015-11-03 15:25:52 -05:00
Rob Rix
ea96c3d580 Highlight within patches. 2015-11-03 15:16:43 -05:00
Rob Rix
5e6c94fd75 Pass the whole annotation into rangeAndSyntaxToDOM. 2015-11-03 15:16:36 -05:00
Rob Rix
dbeb9073a3 Highlight function names. 2015-11-03 15:13:39 -05:00
Rob Rix
f38da39f86 Highlight regexps. 2015-11-03 15:12:44 -05:00
Rob Rix
94c6297026 Highlight type names. 2015-11-03 15:09:55 -05:00
Rob Rix
a33eec8c58 Highlight new. 2015-11-03 15:09:50 -05:00
Rob Rix
dbc59507e9 Highlight undefined. 2015-11-03 15:07:20 -05:00
Rob Rix
787cb679b1 Highlight null. 2015-11-03 15:07:17 -05:00
Rob Rix
1216c34d21 Highlight the operators en masse. 2015-11-03 15:06:58 -05:00
Rob Rix
fbf1704425 Highlight function calls. 2015-11-03 15:00:49 -05:00
Rob Rix
85e634dbd1 Highlight assignments. 2015-11-03 14:57:22 -05:00
Rob Rix
767aecd690 Highlight relational operators. 2015-11-03 14:56:52 -05:00
Rob Rix
50c7575ecd Highlight ternaries. 2015-11-03 14:55:51 -05:00
Rob Rix
440a7326fb Highlight true and false. 2015-11-03 14:54:28 -05:00
Rob Rix
e1a4a97c46 Highlight keys in objects. 2015-11-03 14:51:41 -05:00
Rob Rix
f006b7f95c Only match the assigned-to property with this rule. 2015-11-03 14:49:45 -05:00
Rob Rix
684a6f24ae Match member assignment a little more carefully. 2015-11-03 14:48:30 -05:00
Rob Rix
eca1b0e2b2 Match member access a little more carefully. 2015-11-03 14:48:22 -05:00
Rob Rix
9b78911a04 Highlight a bunch of operators and statements. 2015-11-03 14:40:37 -05:00
Rob Rix
fbeee38bd4 Highlight comments. 2015-11-03 14:35:19 -05:00
Rob Rix
4deba67404 Highlight member accesses. 2015-11-03 14:35:12 -05:00
Josh Vera
28d89241d5 Merge pull request #210 from github/benchmark-parsing-and-diffing
Benchmarks & optimization
2015-11-03 14:34:50 -05:00
Rob Rix
ad9e9f7a1d Don’t inherit syntax highlighting by default. 2015-11-03 14:31:36 -05:00
Rob Rix
0c9698c75d Prefix the highlighting selectors with .diff. 2015-11-03 14:31:22 -05:00
Rob Rix
2081b7447f Highlight numbers. 2015-11-03 14:12:45 -05:00
Rob Rix
2d18d653c8 Highlight strings. 2015-11-03 14:12:41 -05:00
joshvera
06c096bcbe ++Madness 2015-11-03 14:12:35 -05:00
Rob Rix
880d51ffd8 Add CSS classes for the various categories. 2015-11-03 14:08:32 -05:00
Rob Rix
547ab8d3d2 Unpack the ranges. 2015-11-03 14:03:55 -05:00
Rob Rix
4ff4f570bd We no longer use termToDOM. 2015-11-03 13:59:57 -05:00
Rob Rix
4a31774d98 Extract the correct ranges. 2015-11-03 13:58:59 -05:00
Rob Rix
ad3462b135 Terms are annotated with their categories in the JSON too. 2015-11-03 13:20:38 -05:00
Rob Rix
edcb850f93 Extract range & categories. 2015-11-03 13:20:01 -05:00
Rob Rix
9be365ce30 Indentation. 2015-11-03 13:12:35 -05:00
Rob Rix
5d15e3c88d dom.js is gone. 2015-11-03 13:11:50 -05:00
Rob Rix
efc90df9ee I guess this was deleted. 2015-11-03 13:09:01 -05:00
Rob Rix
75400c4065 Serialize annotations out in full. 2015-11-03 13:08:32 -05:00
Josh Vera
b8ceaa445e s/prevous/previous 2015-11-03 13:04:48 -05:00
joshvera
9f2d594cc9 🔥 logs 2015-11-03 12:41:08 -05:00
Rob Rix
939818bbf4 Disable safety checks in release builds. 2015-11-03 12:02:03 -05:00
Rob Rix
db614b5b16 Benchmark loading sources. 2015-11-03 11:56:01 -05:00
joshvera
5f43e526c2 Merge remote-tracking branch 'origin/master' into show-empty-space 2015-11-03 11:47:29 -05:00
joshvera
92feb67ae8 delete obselete code 2015-11-03 11:47:16 -05:00
Rob Rix
1b8e5850f5 Move preconditions into where clauses. 2015-11-03 11:28:52 -05:00
Rob Rix
cd720b79de Fuse Keyed equality in Syntax.equals. 2015-11-03 11:27:54 -05:00
Rob Rix
ae27114f33 Fuse Fixed equality in Syntax.equals. 2015-11-03 11:26:56 -05:00
Rob Rix
127c3b5d75 Fuse Indexed equality in Syntax.equals. 2015-11-03 11:26:48 -05:00
Rob Rix
a372b7aaaf Remove Free.analysis. 2015-11-03 11:21:41 -05:00
Rob Rix
db7c1dc1ef Switch in Free.JSON directly. 2015-11-03 11:21:16 -05:00
Rob Rix
4f16ce62c3 Switch in Free.map directly. 2015-11-03 11:19:33 -05:00
Rob Rix
02af784036 Nothing ever flat maps a Free. 2015-11-03 11:18:13 -05:00
Rob Rix
4169d8d554 Switch in Free.cata directly. 2015-11-03 11:17:41 -05:00
Rob Rix
13c37a1178 Nothing ever maps an Algorithm either. 2015-11-03 11:15:33 -05:00
Rob Rix
45ecdde53a Remove Algorithm.analysis. 2015-11-03 11:15:01 -05:00
Rob Rix
90cd2ee2d7 Nothing ever flat maps an Algorithm. 2015-11-03 11:13:59 -05:00
Rob Rix
c15c2715f5 Rewrite annotating hylo without composition. 2015-11-03 11:04:04 -05:00
Rob Rix
b6436e91f6 Rewrite hylo without composition. 2015-11-03 11:03:57 -05:00
joshvera
86e1e8ae8b hide the empty nodes 2015-11-03 10:48:01 -05:00
joshvera
78ba276948 append index beforehand 2015-11-03 10:45:32 -05:00
Rob Rix
022de3c657 TermType.para rethrows errors. 2015-11-03 10:40:19 -05:00
Rob Rix
196ab28c13 TermType.cata rethrows errors. 2015-11-03 10:40:12 -05:00
Rob Rix
2a102aad02 Fix a doc comment. 2015-11-03 10:39:59 -05:00
Rob Rix
1442bc6cf7 CofreeType.cata rethrows errors. 2015-11-03 10:39:42 -05:00
Rob Rix
e4e57932cf Remove unused operators. 2015-11-03 10:38:18 -05:00
Rob Rix
ea966e9780 Don’t debug doc versioning when profiling. 2015-11-03 10:32:44 -05:00
Rob Rix
17d101f17c Move ChildrenCollection outside of TSNode.
This is necessary to be able to link in release config.
2015-11-03 10:20:31 -05:00
Rob Rix
a0b3738ee2 Benchmark parsing both inputs. 2015-11-03 10:20:15 -05:00
Rob Rix
74fa7ba1b4 Benchmark diffing. 2015-11-03 10:20:11 -05:00
Rob Rix
c1b7993895 Benchmark formatting with a label. 2015-11-03 10:20:02 -05:00
Rob Rix
2651c5ac51 benchmark rethrows. 2015-11-03 10:19:51 -05:00
Rob Rix
a646f03748 Switch on the right parameter. 2015-11-02 18:11:51 -05:00