[CodeCompletion] Auto-completing the throw statement.

When the code completion token appears after throw keyword,
a set of visible decls and instances conforming _ErrorType are
recommended as completion.

Swift SVN r26565
This commit is contained in:
Xi Ge
2015-03-25 23:46:26 +00:00
parent cce9081fe2
commit 6f43e545fb
4 changed files with 86 additions and 14 deletions

View File

@@ -130,9 +130,12 @@ public:
/// \brief Complete a case stmt pattern that starts with a dot.
virtual void completeCaseStmtDotPrefix() = 0;
/// \brief Complete at the beginning of a catch stmt pattern.
/// \brief Complete at the beginning of a catch stmt pattern.
virtual void completeCatchStmtBeginning() = 0;
/// \brief Complete at the beginning of a throw stmt pattern.
virtual void completeThrowStmtBeginning() = 0;
/// Complete at the beginning of member of a nominal decl member -- no tokens
/// provided by user.
virtual void completeNominalMemberBeginning(