Commit Graph

16 Commits

Author SHA1 Message Date
Bas Leijdekkers
11d3e39fc0 [java] fix casing in error message
GitOrigin-RevId: b62a4d41e0c663195ef055de7960155a20443cb5
2022-12-05 13:46:31 +00:00
Anna Kozlova
39c9cc95c7 [java] lvti: report self referencing problems on refs, not on 'var' type (IDEA-284840)
IJ-CR-18768

GitOrigin-RevId: 37e3a9f52cd07f7a4554181a8f665545c9b7d0cb
2021-12-17 09:19:57 +00:00
Anna Kozlova
bbf809f75a [java] don't calculate var type based on invalid data; reorder var based errors (IDEA-284840)
GitOrigin-RevId: 097f9b2d66f9381a321efe16d3ebc155ac31ee39
2021-12-16 05:53:07 +00:00
Anna Kozlova
af05d31c48 java lvti: check for multiple declarations first to avoid registering error on a foreign element (IDEA-252806)
GitOrigin-RevId: a4640e8049680512a54909f6d82180f1421428ee
2020-10-28 13:47:10 +00:00
Nikita Eshkeev
6565d1d76e [analysis] IDEA-240049 Don't report "foreach not applicable" if type being iterated is unresolved
This patch adds the support of intersection types as requested per the
code review

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: eb4f8e42599d402d030b604548d6fd221d9a0448
2020-06-03 13:26:45 +03:00
Nikita Eshkeev
c732f70d00 [analysis] IDEA-240049 Don't report "foreach not applicable" if type being iterated is unresolved
This patch removes from being reported for-each iterated value the types
of which haven't been resolved it. It aims to reduce the number of
reported errors when a user copy-pastes a chunk of code from StackOverflow
or other sources.

Signed-off-by: Nikita Eshkeev <nikita.eshkeev@jetbrains.com>

GitOrigin-RevId: c2e5b9f29ee532212f2f6638d4bf08bb827a9002
2020-06-01 10:25:26 +03:00
Anna.Kozlova
8db821428d lvti: special highlight for self referencing variables (IDEA-224449)
assume that null as type of the left side of the assignment is not possible

GitOrigin-RevId: c407cdc11e991c8db24ffd683f3b8ea883d41244
2019-10-09 10:32:32 +00:00
Roman Shevchenko
eabcde2868 [java] 'var' arrays highlighting (IDEA-193514) 2018-06-08 17:28:55 +03:00
Anna.Kozlova
924e032bbf lvti: reject initializing var with void (IDEA-188623) 2018-03-20 19:58:02 +01:00
Roman Shevchenko
156b436799 [java] parses local-var syntax for lambda parameters (IDEA-187804) 2018-03-08 18:14:26 +01:00
Anna.Kozlova
de82603306 disable convert to functional in var context (IDEA-185038) 2018-01-17 14:08:04 +01:00
Anna.Kozlova
5f5513c966 LVTI: SOE for var with conditional initializer
EA-114618 - SOE: CachedValueBase.getValueWithLock
2018-01-12 10:49:32 +01:00
Anna.Kozlova
d13ad07be9 LVTI: don't report resource list as multiple var declaration (IDEA-CR-24864) 2017-10-02 11:52:51 +02:00
Anna.Kozlova
aa8576f3ce LVTI: shrink the highlighting range
move functional expression errors to var declaration
2017-10-02 11:52:51 +02:00
Anna Kozlova
2f165da164 LVTI: accept explicit array types, javadoc (follow IDEA-CR-24690) 2017-09-19 09:28:42 +03:00
Anna Kozlova
2180c05b71 initial highlighting for LVTI (IDEA-178868) 2017-09-18 17:04:30 +03:00