Skip to content

I20200117-1800

@rgrunber rgrunber tagged this 16 Jan 20:00
- The logic to take the enclosing element of the completion context, and
arrive at a "better" node, should always consider nodes that have the
same start position as the best node encountered so far. Such nodes are
likely to be smaller (since they're discovered later in the AST
traversal), and less likely to overlap with the invocation offset
- In JavaPostfixContext#findBestASTNodeSelection(ASTNode), take into
account where the completion tokens (if any) were entered to avoid
including nodes that overlap with the invocation offset
- Add testcase

Change-Id: I2fdc94c9e76556ad7f6011a575cc53657c4b3cdb
Assets 2
Loading