nixd
Loading...
Searching...
No Matches
AddToFormals.cpp File Reference

Implementation of "Add to formals" code action. More...

Go to the source code of this file.

Namespaces

namespace  nixd

Functions

void nixd::addToFormalsAction (const nixf::Node &N, const nixf::ParentMapAnalysis &PM, const nixf::VariableLookupAnalysis &VLA, const std::string &FileURI, llvm::StringRef Src, std::vector< lspserver::CodeAction > &Actions)
 Add code action to add undefined variable to lambda formals.

Detailed Description

Implementation of "Add to formals" code action.

Adds undefined variables to the formals of the enclosing lambda expression. This is useful when a variable is used in a lambda body but not declared in the formals list.

Definition in file AddToFormals.cpp.