Patrick Thomson
17bc8abd41
Merge remote-tracking branch 'origin/master' into bazel-experiments
2020-07-08 13:37:26 -04:00
Timothy Clem
82d3004693
Strip happens at the end now
2020-07-07 09:54:31 -07:00
Timothy Clem
7533148db8
Test slice logic
2020-07-07 09:07:45 -07:00
Timothy Clem
be7c8d865e
Optimize slicing out first line of text
2020-07-07 09:07:35 -07:00
Timothy Clem
b5c810aff5
Clean up semantic-tags cabal file
2020-07-07 07:27:16 -07:00
Timothy Clem
f8d2a2d617
Just use top level benchmarks
2020-07-06 14:04:27 -07:00
Timothy Clem
fe69bdf5d8
Docs
...
Co-Authored-By: Rebecca Valentine <bekavalentine@users.noreply.github.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-07-06 13:49:27 -07:00
Timothy Clem
b5b7dc6bb8
Rely on span info from tree-sitter for beginning of line
...
Co-Authored-By: Rebecca Valentine <bekavalentine@users.noreply.github.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-07-06 11:50:38 -07:00
Timothy Clem
c262709045
Let these benchmarks compile again
...
Co-Authored-By: Rebecca Valentine <bekavalentine@users.noreply.github.com>
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-07-06 11:50:21 -07:00
Timothy Clem
38638dd008
Lints and cleanups
2020-07-01 17:02:06 -07:00
Timothy Clem
b52403ffd9
Code cleanup
2020-07-01 16:54:41 -07:00
Timothy Clem
cfefa5872c
Some tag level benchmarks
2020-07-01 16:40:08 -07:00
Timothy Clem
67bcc3ca48
Use state to cache line and counting algorithms
2020-07-01 16:39:56 -07:00
Timothy Clem
cce16edf93
Include byteRange in the output
2020-07-01 09:03:41 -07:00
Timothy Clem
adb3b89d55
Re-write countUtf16CodeUnits to work on Source directly
2020-07-01 09:02:45 -07:00
Patrick Thomson
b405ec04e5
Remove repeated comments.
2020-07-01 01:22:08 -04:00
Patrick Thomson
b034378ac2
rename the flags and condense around compilation_mode
2020-07-01 00:35:09 -04:00
Timothy Clem
f08860a17a
Fix up tests
2020-06-29 16:16:27 -07:00
Timothy Clem
8d3f7368e6
Use newtypes wrappers instead of type synonyms
2020-06-29 14:11:04 -07:00
Timothy Clem
6c157742c1
Better formatting, comment about the bit mask
2020-06-29 13:53:22 -07:00
Patrick Thomson
3e7f746d9d
Remove template comments.
2020-06-27 16:24:41 -04:00
Patrick Thomson
dbce051436
simplifying target layouts.
2020-06-27 12:47:04 -04:00
Timothy Clem
9cd0b30ada
Remove old yield
2020-06-25 15:45:54 -07:00
Timothy Clem
7df35cba89
Attempt to slice out a more relevant line for source with long lines
2020-06-25 15:10:56 -07:00
Timothy Clem
e591457a4c
Rework tagging to compute LSP offsets
...
Also updates how we generate the line of source code for display
2020-06-25 14:38:33 -07:00
Timothy Clem
13d995eb17
Cleanup and more tests
2020-06-25 08:49:54 -07:00
Patrick Thomson
6c3a08c735
save a ton of code
2020-06-25 08:56:09 -04:00
Timothy Clem
d3a825f7e1
Must slice the bytestring, then count Text Chars
2020-06-24 18:30:12 -07:00
Timothy Clem
153afb72fb
WIP: counting utf16 code units
2020-06-24 18:15:33 -07:00
Patrick Thomson
deae1e32e0
remove deprecated src_strip_prefix thing
2020-06-23 11:29:02 -04:00
Patrick Thomson
801ef3bfc3
use the same GHC warnings everywhere
2020-06-23 09:45:10 -04:00
Patrick Thomson
ed07e1c319
getting closer
2020-06-09 14:56:19 -04:00
Patrick Thomson
b208bb91ad
Merge remote-tracking branch 'origin/master' into bazel-experiments
2020-06-09 14:35:24 -04:00
Timothy Clem
2e44d43452
Generate Def/Ref at moment of tagging
2020-06-04 10:39:15 -07:00
Timothy Clem
1de1ba7fe3
Move codeql over to proto driven datatypes
2020-06-04 09:35:25 -07:00
Patrick Thomson
ca8475057d
formatting
2020-05-27 14:18:21 -04:00
Patrick Thomson
215fe31bf1
Use black
for formatting Bazel files.
2020-05-21 19:24:56 -04:00
Patrick Thomson
98ce019780
as does semantic-tags
2020-05-19 13:03:34 -04:00
Patrick Thomson
f7f5541414
s/Implements/Implementation in this comment.
2020-04-23 10:55:19 -04:00
Patrick Thomson
eae11d016c
Tag Java interfaces and interface implementations.
...
This patch adds tagging support to Java `InterfaceDeclaration` and
`InterfaceTypeList` nodes. To do so, we add two new constructors to
`Tags.Tag.Kind`: `Interface`, emitted by `InterfaceDeclaration`, and
`Implementation`, emitted by `implements` clauses in Java source. Some
modification of downstream services will be indicated.
2020-04-21 17:03:19 -04:00
Rick Winfrey
765dae470f
Add Type data constructor to Kind
2020-04-02 15:37:46 -07:00
Rick Winfrey
9a7ed9d294
Bump to semantic-source 0.1.0
...
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
2020-03-23 13:40:50 -07:00
Patrick Thomson
467d6f0b03
Fix Haddock generation.
...
I found myself wanting a Haddock docset for PHP tags work.
Unfortunately, haddocset is behind a GHC version, so it does not
function correctly. At least HTML works, when you pull these
few Haddock-tag changes in.
2020-02-19 13:24:51 -05:00
Rob Rix
d40f3832e8
Move AST.Element from semantic-tags into semantic-ast.
2020-02-04 13:36:40 -05:00
Rob Rix
7a2cc7fb7a
Move Traversable1 into semantic-ast.
2020-02-04 13:35:35 -05:00
Patrick Thomson
9ecaeedcc3
Depend on newer semantic-source.
2020-01-28 12:42:42 -05:00
Timothy Clem
c0d8675d09
Use semantic-source 0.0.1
2020-01-16 12:57:24 -08:00
Timothy Clem
6bcc231355
firstLine takes a range
2020-01-16 12:14:40 -08:00
Timothy Clem
0ffa50bdf4
Can't take 180 bytes and then convert to text
2020-01-16 08:44:03 -08:00
Timothy Clem
2bf8c5b965
Merge branch 'precise-tag-benchmarks' into precise-alacarte-matching
2020-01-14 13:52:35 -08:00