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

145 Commits

Author SHA1 Message Date
Patrick Thomson
dd4a939f21 merge fallout 2018-06-04 12:18:02 -04:00
Patrick Thomson
7c9b1ec17e Merge remote-tracking branch 'origin/master' into text-names 2018-06-04 11:46:54 -04:00
Timothy Clem
359031d777 s/Program/Statements in all of the tests 2018-06-01 11:44:03 -07:00
Patrick Thomson
d144087486 Merge remote-tracking branch 'origin/master' into text-names 2018-05-30 23:51:11 -04:00
Patrick Thomson
f541c42da8 Fix literals to store text internally. 2018-05-30 22:32:22 -04:00
Patrick Thomson
7ba832d566 Fix tests. 2018-05-30 18:29:54 -04:00
Timothy Clem
2d08451d87 Call [] Statements 2018-05-29 14:25:31 -07:00
Timothy Clem
1cbccd5557 Merge branch 'master' into python-relative-imports 2018-05-17 07:55:33 -07:00
Rob Rix
101798fd39 Update a bunch of fixtures. 2018-05-16 16:38:40 -04:00
Timothy Clem
62956f78d7 Print and actually return a string 2018-05-15 11:57:18 -07:00
Timothy Clem
27ce720904 Test out relative python imports 2018-05-15 11:26:16 -07:00
Patrick Thomson
6f63463269 Remove explicit Paren node from syntax trees.
As @robrix pointed out, adding explicit parenthesis nodes to our ASTs
bloats them with no added gain in expressivity. A pretty-printing
solution should use something analogous to `showsPrec` to ensure that
parentheses are printed properly.
2018-04-23 11:00:10 -04:00
Timothy Clem
ea0afa1747 Move corpus tests into their own dir 2018-04-18 13:33:17 -07:00
joshvera
d8c597e894 Merge remote-tracking branch 'origin/master' into typescript-graphs 2018-04-18 14:20:22 -04:00
Patrick Thomson
eb649777cd fix test cases 2018-04-17 18:42:02 -04:00
Timothy Clem
36e4bbecd9 Python fixture fixes 2018-04-16 16:52:54 -07:00
Patrick Thomson
d31e3eca88 fix ALL the test failures 2018-04-06 13:05:28 -04:00
Timothy Clem
4b9caec4c5 Fix up tests for Name wrapper 2018-04-04 08:59:13 -07:00
Timothy Clem
e9b6887268 Python import assignment changed - update fixtures 2018-04-02 15:18:23 -07:00
Patrick Thomson
178da2959e Implement multiple inheritance.
Python is the only language that we support that permits multiple
inheritance, which is probably good, since MI is generally considered
a sign of a poorly-designed object hierarchy. But there's no reason
not to support it. This algorithm is more simplistic than Python's
actual method-resolution lookup, but it's fine for now, and the
behavior for simple cases matches that of Python.
2018-03-22 15:54:21 -04:00
Patrick Thomson
bd939d2579 Fix Python method calls.
`identifier` in the Python assignment module was too eager to reduce a
nested Attribute into a dotted identifier. Removing it fixes method
calls, which now have a unit test.
2018-03-22 15:35:08 -04:00
Timothy Clem
aeb49477a1 Update integration fixtures for changes to assignment 2018-03-14 16:13:41 -07:00
Timothy Clem
201387957a Some additional Python examples 2018-03-09 14:02:06 -08:00
Timothy Clem
642a96a53f Bring back python imports with a little assignment fix 2018-03-08 13:18:13 -08:00
Timothy Clem
24a470ba7a FreeVariable Name as NonEmpty List 2018-03-08 09:34:09 -08:00
Timothy Clem
948162c88d Fix up tests again 2018-03-08 07:57:18 -08:00
Timothy Clem
61f6d0314b Fix up a few tests 2018-03-06 11:02:29 -08:00
Timothy Clem
843728aa3b Merge remote-tracking branch 'origin/master' into environment-scoping 2018-03-05 08:43:32 -08:00
Patrick Thomson
1da2668d60 Fix end-to-end tests. 2018-03-02 15:30:51 -08:00
Timothy Clem
2d91f699f6 Fix up tests to assert wildcard imports 2018-03-01 14:59:09 -08:00
Timothy Clem
ad225f7d89 Updated test fixtures for qualified imports 2018-03-01 14:04:13 -08:00
Timothy Clem
3352b840aa Simplify these to get started 2018-03-01 11:47:38 -08:00
Timothy Clem
bc883f3941 Another updated fixture from new import alias structure 2018-03-01 11:47:29 -08:00
Timothy Clem
ee749ddcf1 Restructure Python import alias assignment 2018-03-01 11:45:43 -08:00
Timothy Clem
b1b463fb99 Begin to build some python fixtures for imports 2018-03-01 10:08:15 -08:00
joshvera
19ab77f434 Use expressions 2018-02-13 20:28:31 -05:00
joshvera
616a82eb8a Fix tests 2018-02-13 12:44:50 -05:00
Timothy Clem
aed971ed07 Merge branch 'master' into import-graph 2018-02-12 10:11:29 -08:00
Timothy Clem
fb000828ed Test out import-graph output for relevant languages 2018-02-07 12:20:41 -08:00
Timothy Clem
25cf8bb56d Clean up python import parsing a bit more
Makes sure we can parse things like:
from b import a as x, b as y
2018-02-06 13:40:49 -08:00
Josh Vera
88b8c64df5 Merge branch 'master' into php-assignment 2018-02-05 17:02:35 -05:00
Timothy Clem
475d222cb5 Fix up python tests after changing to support ImportSymbol 2018-01-30 13:14:50 -08:00
joshvera
819664e2f7 Merge remote-tracking branch 'origin/master' into php-assignment 2018-01-25 17:46:00 -05:00
Timothy Clem
a1fb0a1ee5 Flatten out python trees a bit 2018-01-19 07:51:01 -08:00
joshvera
0e6b98239a Regenerate tests 2018-01-16 18:24:58 -05:00
Timothy Clem
ea5d7437d4 Fix up Python tests for new structure of Import 2018-01-15 20:14:50 -07:00
joshvera
df973897fa Fix boolean operator tests 2017-12-27 14:50:33 -05:00
Rob Rix
10b8de93b3 Update the fixtures. 2017-12-01 17:13:24 -05:00
Timothy Clem
0b3568aaba Shape of Declaration.Class changed 2017-11-08 14:26:40 -08:00
Ayman Nadeem
fd11cf9e22 updated fixture 2017-10-31 14:56:25 -07:00