You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
by answering PSI queries “directly from source” rather than
4337
-
delegating to the Kotlin compiler backend. You may see ultra
4338
-
light classes when accessing the <code>UElement.javaPsi</code> property of a
4339
-
Kotlin UAST element. They can also appear when resolving references.
4340
-
For example, resolving a Kotlin field reference to its declaration
4341
-
may result in an instance of <code>KtUltraLightFieldForSourceDeclaration</code>.
4342
-
As a reminder, Kotlin light classes represent the “Java view” of an
4334
+
<liclass="asterisk">Certain Kotlin PSI elements have new implementations known as<emclass="underscore">ultra
4335
+
light classes</em>. Ultra light classes improve performance by answering
4336
+
PSI queries “directly from source” rather than delegating to the
4337
+
Kotlin compiler backend. You may see ultra light classes when
4338
+
accessing the <code>UElement.javaPsi</code> property of a Kotlin UAST element.
4339
+
They can also appear when resolving references. For example,
4340
+
resolving a Kotlin field reference to its declaration may result in
4341
+
an instance of <code>KtUltraLightFieldForSourceDeclaration</code>. As a
4342
+
reminder, Kotlin light classes represent the “Java view” of an
4343
4343
underlying Kotlin PSI element. To access the underlying Kotlin PSI
4344
-
element you should use <code>UElement.sourcePsi</code> (preferred)
4345
-
or otherwise the extension property <code>PsiElement.unwrapped</code> (declared
4346
-
in <code>org.jetbrains.kotlin.asJava</code>).
4344
+
element you should use <code>UElement.sourcePsi</code> (preferred) or otherwise
4345
+
the extension property <code>PsiElement.unwrapped</code> (declared in
4346
+
<code>org.jetbrains.kotlin.asJava</code>).
4347
4347
4348
4348
<p></p><p>
4349
4349
@@ -4358,7 +4358,19 @@
4358
4358
</p></li>
4359
4359
<liclass="asterisk">Kotlin references to Java methods now trigger both the
4360
4360
<code>visitMethodCall()</code> callback <emclass="underscore">and</em> the <code>visitReference()</code> callback.
4361
-
Previously only <code>visitMethodCall()</code> was triggered.</li></ul>
4361
+
Previously only <code>visitMethodCall()</code> was triggered.
4362
+
4363
+
<p></p><p>
4364
+
4365
+
</p></li>
4366
+
<liclass="asterisk">Quickfixes can now create and delete new files; see
4367
+
<code>LintFix#newFile</code> and <code>LintFix#deleteFile</code>..
4368
+
4369
+
<p></p><p>
4370
+
4371
+
</p></li>
4372
+
<liclass="asterisk">For quickfixes, the <code>independent</code> property had inverted logic;
4373
+
this has now been reversed to follow the meaning of the name.</li></ul>
4362
4374
4363
4375
<p></p>
4364
4376
<aclass="target" name="appendix:environmentvariablesandsystemproperties"> </a><aclass="target" name="appendix:environmentvariablesandsystemproperties"> </a><aclass="target" name="toc10"> </a><h1>Appendix: Environment Variables and System Properties</h1>
@@ -4515,5 +4527,8 @@
4515
4527
4516
4528
</p></dd></td></tr><trvalign="top"><td><dt><code>lint.do.not.reuse.uast.env</code></dt></td><td><dd><p> Alias for <code>$LINT_DO_NOT_REUSE_UAST_ENV</code>
4517
4529
4530
+
</p></dd></td></tr><trvalign="top"><td><dt><code>android.lint.log-jar-problems</code></dt></td><td><dd><p> Controls whether lint will complain about custom check lint jar
<p></p></span><divid="mdContextMenu" style="visibility:hidden"></div><divclass="markdeepFooter"><i>formatted by <ahref="https://casual-effects.com/markdeep" style="color:#999">Markdeep 1.13 </a></i><divstyle="display:inline-block;font-size:13px;font-family:'Times New Roman',serif;vertical-align:middle;transform:translate(-3px,-1px)rotate(135deg);">✒</div></div></body></html>
0 commit comments