|
nixd
|
Implementation of "Add to formals" code action. More...
#include "AddToFormals.h"#include "Utils.h"#include "../Convert.h"#include <nixf/Basic/Nodes/Lambda.h>#include <nixf/Basic/Nodes/Simple.h>#include <nixf/Sema/ParentMap.h>#include <nixf/Sema/VariableLookup.h>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. | |
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.