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

4436 Commits

Author SHA1 Message Date
Timothy Clem
39164f047b Remove diff toc from proto datatypes 2020-04-03 11:25:11 -07:00
Patrick Thomson
635d3d58b6 Remove table of contents support. 2020-03-31 13:55:26 -04:00
Rick Winfrey
7b588d89c5
Merge pull request #518 from github/bump-semantic-source
Bump semantic-source
2020-03-27 11:40:44 -07:00
Patrick Thomson
577f9d2564 Add an orphan to propitiate the tests. 2020-03-27 12:41:51 -04:00
Patrick Thomson
c872660ffc
Merge pull request #519 from zhujinxuan/pathtype-all
Replace FilePath with pathtype for ModulePath, Blob and Project
2020-03-27 12:16:14 -04:00
Patrick Thomson
f9dd7e8922 Remove readBlobsFromDir and codeNavLanguages.
These weren't being called anywhere but the tests, and as such are
little more than make-work whenever we add new features.
2020-03-24 10:46:56 -04:00
zhujinxuan
769b33130b Use Path.AbsRel For Blob, ModuleInfo and Project
- Use Path.AbsRelFile for Blob
- Use Path.AbsRelDir for Project
- Use Path.AbsRelFile for ModuleInfo and ModulePath
- semantic.cabal test-suite test is passed
2020-03-22 13:39:10 -04:00
Timothy Clem
a09b34de5f
Merge pull request #497 from github/incremental-sg-api
Introduce the beginning of the scope graph API
2020-03-05 09:49:12 -08:00
Timothy Clem
5923c38fbf New extensions 2020-03-05 08:33:28 -08:00
Douglas Creager
90c0008e12 Extract precise tags from Python f-strings
Python f-strings can contain embedded expressions:

``` python
def x():
    return 5
f"hello there {x()} people"
```

The precise tagging definitions now traverse into f-strings, and any
interpolations that they contain, so that we can generate tags for any
function calls that appear in them.
2020-02-25 18:16:06 -05:00
Josh Vera
c7c6df0828
Merge branch 'master' into markdone 2020-02-13 14:32:29 -05:00
Patrick Thomson
f75fff62ef Lost this import. 2020-02-13 00:06:18 -05:00
Patrick Thomson
f278647d37 disable this test 2020-02-12 23:50:16 -05:00
Patrick Thomson
764e172b98 Merge remote-tracking branch 'origin/master' into precise-parsing-by-default 2020-02-12 19:17:09 -05:00
Patrick Thomson
f722cb0897 Move Data.Project to semantic-analysis.
I need this for semantic-scope-graph so that each graph can have
correct `ModuleInfo` fields. Straightforward.
2020-02-11 12:52:44 -05:00
Patrick Thomson
2b78068978 Merge remote-tracking branch 'origin/master' into markdone 2020-02-06 14:43:56 -05:00
Ayman Nadeem
699f8c343b add JSON Grammar datatype 2020-01-29 15:44:53 -05:00
Ayman Nadeem
0900bdbe74 Merge branch 'master' into my-grate 2020-01-29 15:09:17 -05:00
Patrick Thomson
49efa8c8bc Fix the tests. 2020-01-28 15:51:07 -05:00
Patrick Thomson
953473088d Merge remote-tracking branch 'origin/master' into name-name-go-away 2020-01-28 15:07:05 -05:00
Rob Rix
2e9cd2c006
Merge pull request #439 from github/tower-of-babble
Remove Data.Blob.File in favor of Analysis.File and use semantic-source’s Language type.
2020-01-28 14:09:26 -05:00
Ayman Nadeem
4bb39cba96 change Data.Graph to Data.Graph.Algebraic 2020-01-28 13:25:59 -05:00
Timothy Clem
deafddedde Span changed? 2020-01-27 16:06:49 -08:00
Patrick Thomson
0acaae2529 dodgy import 2020-01-26 11:30:28 -05:00
Patrick Thomson
fdeb2bcb21 Propitiate the test suite. 2020-01-26 11:21:59 -05:00
Patrick Thomson
8fcf35a86d Another import. 2020-01-24 17:17:53 -05:00
Patrick Thomson
7c3b71a604 Move semantic-specific stuff back to Data.Language. 2020-01-24 16:18:58 -05:00
Patrick Thomson
ef0960bd7b Rename sourceBlob. 2020-01-24 16:13:19 -05:00
Patrick Thomson
4be80fecef Change the signature of Blob.sourceBlob. 2020-01-24 16:07:04 -05:00
Patrick Thomson
2620c050a7 Rename languageForFilePath. 2020-01-24 15:58:48 -05:00
Patrick Thomson
3ffb8d4b22 Better names everywhere. 2020-01-24 15:41:49 -05:00
Patrick Thomson
cac106240b Remove fileForPath hack. More typed paths = good. 2020-01-24 15:33:35 -05:00
Patrick Thomson
df4a554690 Kill the old legacy makeBlob. 2020-01-24 14:42:53 -05:00
Patrick Thomson
2b25dddf73 Absolutely massive patch to eliminate Data.Blob.File. 2020-01-24 13:55:30 -05:00
Timothy Clem
58912e649b Use existing default functions 2020-01-24 10:43:16 -08:00
Timothy Clem
b0358d84aa Diffing still requires a la carte 2020-01-24 10:26:45 -08:00
Timothy Clem
7d8821cd93 Sort out json test corpus 2020-01-24 10:26:33 -08:00
Timothy Clem
dbcae9142e Parse fixture updates for the remaining languages 2020-01-24 10:17:34 -08:00
Timothy Clem
a12272294e Fix this spec, new sexpr format 2020-01-24 08:52:38 -08:00
Timothy Clem
d7d1b0aee3 New golden corpus for precise AST expected output 2020-01-24 08:50:22 -08:00
Timothy Clem
3afeb0dfaf Single place to define common PerLanguageModes 2020-01-24 08:47:09 -08:00
Timothy Clem
164b96bab0 Fix up tagging tests to represent precise mode
NOTE: We don't currently support docstrings with precise parsing
2020-01-24 08:16:14 -08:00
Patrick Thomson
f8c8c7913f Merge remote-tracking branch 'origin/master' into name-name-go-away 2020-01-17 15:31:24 -05:00
Patrick Thomson
00d99739d2
Merge pull request #425 from github/fix-source-to-text
Can't take 180 bytes and then convert to Text
2020-01-17 15:08:08 -05:00
Patrick Thomson
1671d1c182 No more IsString instance needed here. 2020-01-17 14:59:49 -05:00
Patrick Thomson
fb26d76137 Merge branch 'semantic-scope-graph' into name-name-go-away 2020-01-17 11:28:51 -05:00
Patrick Thomson
37e1c1095b Merge remote-tracking branch 'origin/master' into semantic-scope-graph 2020-01-17 11:24:07 -05:00
Patrick Thomson
ccb586ccd2 🔥 Data.Abstract.Name. 2020-01-17 11:09:19 -05:00
Timothy Clem
d788493dee Remove a bunch of parse-example skips now 2020-01-16 12:15:01 -08:00
Timothy Clem
3d7b0a0736 Turn on all the parse examples 2020-01-15 13:44:34 -08:00