1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
Commit Graph

126 Commits

Author SHA1 Message Date
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
Rob Rix
e512398b85 Update a bunch of fixtures. 2017-10-24 15:13:47 -04:00
Rob Rix
0fecda703a Update the fixtures. 2017-10-03 15:26:50 -04:00
joshvera
b3667104fb Merge remote-tracking branch 'origin/master' into typescript-assignment 2017-09-28 14:24:57 -07:00
Rob Rix
5ba29e6361 Fix the while-statement diff. 2017-09-25 18:46:47 -04:00
Rob Rix
de1a5f8a23 Fix _most of_ the failures. 2017-09-25 18:45:37 -04:00
joshvera
c5e3ca246f Update function and async-function specs in python 2017-09-19 17:32:51 -04:00
joshvera
d0fb557bec Merge remote-tracking branch 'origin/master' into typescript-assignment 2017-09-19 17:04:27 -04:00
Timothy Clem
44d59f4e4d Some updated python fixtures due to eqTerms 2017-09-19 09:37:50 -07:00
joshvera
c26dcae355 Merge remote-tracking branch 'origin/master' into typescript-assignment 2017-09-15 14:38:47 -04:00
joshvera
ef2e5afa76 Regenerate tests 2017-09-10 22:08:40 +01:00
Rob Rix
27db18bfde Correct the language fixtures. 2017-09-09 23:41:12 +01:00
Rick Winfrey
82a703088d Update Python integratin specs
In tree-sitter-python, `(a)` is not a tuple of identifier, it is an expression that evaluates to the value of `a`.
2017-09-01 15:51:53 -04:00
joshvera
b99309bcc5 Merge remote-tracking branch 'origin/master' into typescript-assignment 2017-08-25 12:18:09 -04:00
Rick Winfrey
8f9b96dc3d Update Python integratin specs
In tree-sitter-python, `(a)` is not a tuple of identifier, it is an expression that evaluates to the value of `a`.
2017-08-24 16:35:15 -07:00
joshvera
6c94040649 fix up python tests 2017-08-24 17:29:55 -04:00
Timothy Clem
86f65b39ff 🔥 these un-needed fixtures that duplicate parse expectations 2017-08-24 12:59:08 -07:00
Rob Rix
c0a410ba7e Merge branch 'master' into systematic-comment-assignment 2017-08-15 10:48:10 -04:00
Rob Rix
fef11c61ba Update the Python fixtures. 2017-08-15 10:05:34 -04:00
Rob Rix
3960c35b22 Add ±B yield fixtures. 2017-08-15 09:55:31 -04:00