You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2021/09/03 05:44:01 UTC

[GitHub] [netbeans] JaroslavTulach commented on a change in pull request #3125: Use static type checking to attribute AST

JaroslavTulach commented on a change in pull request #3125:
URL: https://github.com/apache/netbeans/pull/3125#discussion_r701599178



##########
File path: groovy/groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/api/completion/MethodCCTest.java
##########
@@ -157,5 +157,83 @@ public void testCompletionNoPrefixString2() throws Exception {
     public void testMethods4() throws Exception {
         checkCompletion(BASE + "Methods4.groovy", "iface.meth^", false);
     }
+    
+    /**
+     * Checks method completion on direct reference to a variable
+     */
+    public void testMethods5_chain1() throws Exception {
+        checkCompletion(BASE + "Methods5.groovy", " someFile.getP^arentFile()", true);
+    }
+
+    /**
+     * Checks method completion on 2nd reference in the chain, filtering for "m"
+     */
+    public void testMethods5_chain2() throws Exception {
+        checkCompletion(BASE + "Methods5.groovy", " someFile.getParentFile().mk^dirs()", true);

Review comment:
       This shows that the chained calls work well with code completion, right?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists