[CodeCompletion] Add assignment to experimental operator completion

When the LHS is an lvalue/assignable tuple and there is no leading
sequence of binary expressions.

It's a bit hacky right now since we don't have a good way to
differentiate general pattern completions from builtin operators.

rdar://problem/23209683
This commit is contained in:
Ben Langmuir
2016-03-02 17:29:46 -08:00
parent d88d5052aa
commit 8f9299cc97
11 changed files with 79 additions and 8 deletions

View File

@@ -263,6 +263,9 @@ static void getResultStructure(
C.is(ChunkKind::CallParameterBegin))
break;
if (C.is(ChunkKind::Equal))
isOperator = true;
if (C.hasText())
textSize += C.getText().size();
}