Vladimir Plyashkun
61a3e18b78
Merge branch 'master' into vplyashkun/inplace_rename_lags
...
GitOrigin-RevId: aaecc2a32e4e42de827efb45b8df733874a722e4
2019-05-03 01:41:29 +03:00
Leonid Bushuev
970dc0fe32
Remove unnecessary downcasting
...
GitOrigin-RevId: b91110977db6e5b08d9f4aaffa8496d305d698e2
2019-05-03 01:40:23 +03:00
Vladimir Plyashkun
2d9369d983
CPP-16098 - Lags during inplace rename typing
...
- changed behaviour in safe way by introducing new method to check that particular expression does not depend
on committed PSI
GitOrigin-RevId: f5ec732613cdafdcef8a1d48eb8d04135c634047
2019-05-03 01:39:50 +03:00
Leonid Bushuev
338ad6db56
SQL code style per dialect: UI: fix indent editor
...
GitOrigin-RevId: 3cb00f5c500523717c42f404b2f38fd1822d6db0
2019-05-03 01:39:18 +03:00
Vladimir Plyashkun
d990d75dba
Merge branch 'master' into vplyashkun/inplace_rename_lags
...
GitOrigin-RevId: 5c7f8c478e7328df1646879ede977efd7465adf8
2019-05-03 01:38:45 +03:00
Vladimir Plyashkun
e3ca319824
CPP-16098 - Lags during inplace rename typing
...
- call `commitDocument` explicitly in cases when `calculateQuickResult` can redirect it's calculation to heavy `calculateResult`
GitOrigin-RevId: 41f0c47c57f4528d7d7a25208024ec28bb8c2e12
2019-05-03 01:38:12 +03:00
Leonid Bushuev
dc1a52762e
SQL code style per dialect: UI
...
GitOrigin-RevId: 9b1b3e745d4c8acef5a4a1018714e004e5423519
2019-05-03 01:37:38 +03:00
Vladimir Plyashkun
d712ac9901
CPP-16098 - Lags during inplace rename typing
...
- removed `commitDocument` call when `isQuick` argument is passed
- pass `element` or `null` to `equalsToText` call (since there is not real need to take it for text comparison)
GitOrigin-RevId: 27c5e1a2f484fc56d41dfd210832ae94c9a9b7ab
2019-05-03 01:37:04 +03:00
Leonid Bushuev
9f35a30458
SQL code style per dialect: UI
...
GitOrigin-RevId: 72cca4d6a23a5e2aa2089c03932ab2e9d08bfa48
2019-05-03 01:36:24 +03:00
Anna Kozlova
7a03a2be5c
method references overload resolution: skip static methods of interfaces called on inheritor (IDEA-209920)
...
GitOrigin-RevId: 9e7889def32913679fa867f9dd2a80f8d187964e
2019-04-28 19:25:43 +03:00
peter
28a5a5765f
IDEA-211449 IDEA is unable to find lambda implementations when invoked on library class source
...
GitOrigin-RevId: 8fd904e0dae62c5b15f9b85fe2086860bf89b4d0
2019-04-28 17:13:28 +03:00
Anna Kozlova
00fbf3d133
lambda potential compatibility: don't treat array creation as void compatible
...
array creation can't be used as expression statement thus corresponding lambda body is value compatible but not void compatible
GitOrigin-RevId: b0ddccad13c8699de64c4ce3e584214fe08a2353
2019-04-28 14:57:53 +03:00
Tagir Valeev
1327600ef4
IDEA-205881 Remove redundant cast leads to incompilable code
2019-03-22 10:44:54 +07:00
Tagir Valeev
62bbfeaa3c
JavaFunctionalExpressionIndex: support array initializers
2019-03-15 10:45:43 +07:00
Anna.Kozlova
bb01072eb6
fix code to compile under java 11 as well
2019-02-11 18:43:21 +01:00
Anna.Kozlova
c6e5f6788f
overload resolution: ignore explicit type arguments when choosing most specific method for java 8+
2019-01-30 18:38:47 +01:00
Anna.Kozlova
4c48f0c2b0
inference: check lower bounds to eqBound assignability explicitly (IDEA-204125)
2019-01-22 13:45:02 +01:00
Anna.Kozlova
1f24e30346
inference: process supertypes starting from self to find valid parameterization (IDEA-204125)
2019-01-22 13:45:02 +01:00
Anna.Kozlova
6d77556d61
method references: error on wrong number of type arguments on static call (IDEA-205657)
2019-01-18 20:31:39 +01:00
Anna.Kozlova
05027a22f6
light resolve tests when applicable
2019-01-02 16:35:41 +01:00
Anna.Kozlova
44b0ad8059
convert to light test case
2018-12-28 16:26:28 +01:00
Anna.Kozlova
d2042376d2
overload resolution: erase type of parameter when site substitutor is raw (IDEA-203450)
...
similar to erasure of call type when inferred substitutor is raw
2018-12-03 15:21:12 +01:00
Anna.Kozlova
b015644d7a
get rid of redundant space in error message
2018-11-21 15:54:15 +01:00
Anna.Kozlova
8b768f2e94
inference: skip constraints and everything dependant above overload resolution
2018-11-15 16:31:25 +01:00
Anna.Kozlova
c4393bfa0e
inference: skip constraints that depend on ignored constraints
...
when type of lambda parameter is calculated, the containing lambda doesn't end in the constraints set; if some other constraints depend on it's output variables, inside those constraints e.g. method calls may be cached based on incomplete inference results which would lead to blinking of highlighting
2018-11-14 15:18:08 +01:00
peter
1c50ca6d08
java completion: remove irrelevant suggestions after Unresolved:: (IDEA-201798)
...
to enable chain completion, which only works when there are no other suggestions
2018-11-08 09:22:18 +01:00
Anna.Kozlova
af3e15a689
highlight method call: don't ignore args with applicable calls as they may still cause parent call incompatibility
...
IDEA-201175
2018-10-25 16:20:56 +02:00
Anna.Kozlova
50b66d9d4b
method reference overloads: second search should provide actual parameter types with 1 offset (IDEA-200218)
2018-10-22 17:02:20 +02:00
Anna.Kozlova
9aa64b30d9
inference: allow child session inference if containing method is not generics
2018-10-19 17:52:43 +02:00
peter
c9694995ac
IDEA-199875 Rank println higher than print
2018-10-05 11:25:23 +02:00
Anna.Kozlova
779291d906
ensure fresh variables for the same context don't conflict by names (IDEA-196642)
2018-08-06 19:35:12 +02:00
Anna.Kozlova
fbb178fb85
inference: check intersection type for raw conversion separately (IDEA-196523)
2018-08-01 11:52:03 +02:00
Anna.Kozlova
16f0977481
diamonds: simulate resolved constructor with generated static factory (IDEA-195813)
2018-07-23 19:20:55 +02:00
Anna.Kozlova
378ea0e334
don't fail to attach fixes on invalid code
...
EA-122929 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText
2018-07-16 10:43:52 +02:00
Anna.Kozlova
f739ddf3d4
inference: ensure all type parameters are processed on upUp bound incorporation (IDEA-194839)
2018-07-02 17:15:28 +02:00
Anna Kozlova
201de8dd01
redundant cast: trim too long messages (IDEA-182666)
2018-06-19 13:18:27 +03:00
Anna Kozlova
dc43909e2c
ensure no inference from not inferred var (IDEA-193828)
2018-06-13 21:00:17 +03:00
Anna Kozlova
c43b6f20de
completion: check parent overloads for constructor calls as well (IDEA-187354)
2018-06-05 17:13:42 +03:00
Anna Kozlova
ab271fcb5b
inference: partially resolve before erasure for target type inference
...
IDEA-192208
2018-05-28 18:54:01 +03:00
Anna Kozlova
c9d3d04e73
method ref: ensure capture conversion on first arg of second search
2018-05-22 15:48:15 +03:00
Anna.Kozlova
c4ada244b2
method refs: don't ignore applicability errors (IDEA-191467)
2018-05-17 11:28:24 +02:00
peter
de6c52c7a0
IDEA-187747 Suggest Collectors.joining() collector for String stream
2018-05-02 16:32:48 +02:00
Anna.Kozlova
51a2d549b2
highlight only method name on unhandled exception (IDEA-190912)
2018-04-25 21:11:38 +02:00
Anna.Kozlova
74f6d68ea3
inference for method references: register new variables for raw access
...
IDEA-189883, IDEA-188976: according to the 15.13.1 search for member is performed in the parameterization (non-raw) type which is a subtype of the first parameter type, in this case no additional variables are required as the type contains type arguments
2018-04-11 10:19:16 +02:00
Anna.Kozlova
aad9fe81c2
show error for type arguments on array creation (IDEA-189766)
2018-04-09 15:07:49 +02:00
Anna.Kozlova
686c13fd01
inference: fix index for non-proper captured wildcard bounds (IDEA-188487)
2018-03-19 17:48:41 +01:00
Anna.Kozlova
e75b0faed2
inference: ensure erasure flag is pushed to the container expression
...
IDEA-185316
2018-03-14 17:39:04 +01:00
Anna.Kozlova
51f6813ee3
valid static method reference on class's inheritor (IDEA-187974)
2018-03-09 11:44:47 +01:00
Anna.Kozlova
36b1e622eb
inference: skip bounds checking for captured fresh variables (IDEA-187943)
2018-03-08 19:06:30 +01:00
Anna.Kozlova
877b2424ce
inference: don't process lambda return expressions for void return type
...
those lambda return expressions can't influence containing call inference according to lambda constraint; which means that no additional inference variables could be propagated during inference process hence exception constraints could operate with proper types which are in fact type parameters - which would lead to unhandled exceptions on the top level (IDEA-187930)
2018-03-08 11:53:52 +01:00