nixd
Loading...
Searching...
No Matches
Classes | Namespaces
VariableLookup.h File Reference

Lookup variable names, from it's parent scope. More...

#include "nixf/Basic/Diagnostic.h"
#include "nixf/Basic/Nodes/Attrs.h"
#include "nixf/Basic/Nodes/Basic.h"
#include "nixf/Basic/Nodes/Expr.h"
#include "nixf/Basic/Nodes/Lambda.h"
#include "nixf/Basic/Nodes/Simple.h"
#include <map>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  nixf::Definition
 Represents a definition. More...
 
class  nixf::EnvNode
 A set of variable definitions, which may inherit parent environment. More...
 
class  nixf::VariableLookupAnalysis
 
struct  nixf::VariableLookupAnalysis::LookupResult
 

Namespaces

namespace  nixf
 

Detailed Description

Lookup variable names, from it's parent scope.

This file declares a variable-lookup analysis on AST. We do variable lookup for liveness checking, and emit diagnostics like "unused with", or "undefined variable". The implementation aims to be consistent with C++ nix (NixOS/nix).

Definition in file VariableLookup.h.