nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nixd::NixTU Class Reference

Holds analyzed information about a document. More...

#include <NixTU.h>

Public Member Functions

 NixTU ()=default
 
 NixTU (std::vector< nixf::Diagnostic > Diagnostics, std::shared_ptr< nixf::Node > AST, std::optional< util::OwnedRegion > ASTByteCode, std::unique_ptr< nixf::VariableLookupAnalysis > VLA, std::shared_ptr< const std::string > Src)
 
const std::vector< nixf::Diagnostic > & diagnostics () const
 
const std::shared_ptr< nixf::Node > & ast () const
 
const nixf::ParentMapAnalysisparentMap () const
 
const nixf::VariableLookupAnalysisvariableLookup () const
 
std::string_view src () const
 

Detailed Description

Holds analyzed information about a document.

TU stands for "Translation Unit".

Definition at line 19 of file NixTU.h.

Constructor & Destructor Documentation

◆ NixTU() [1/2]

nixd::NixTU::NixTU ( )
default

◆ NixTU() [2/2]

NixTU::NixTU ( std::vector< nixf::Diagnostic > Diagnostics,
std::shared_ptr< nixf::Node > AST,
std::optional< util::OwnedRegion > ASTByteCode,
std::unique_ptr< nixf::VariableLookupAnalysis > VLA,
std::shared_ptr< const std::string > Src )

Definition at line 5 of file NixTU.cpp.

References nixd::fromJSON().

Member Function Documentation

◆ ast()

const std::shared_ptr< nixf::Node > & nixd::NixTU::ast ( ) const
inline

Definition at line 39 of file NixTU.h.

◆ diagnostics()

const std::vector< nixf::Diagnostic > & nixd::NixTU::diagnostics ( ) const
inline

Definition at line 35 of file NixTU.h.

◆ parentMap()

const nixf::ParentMapAnalysis * nixd::NixTU::parentMap ( ) const
inline

Definition at line 41 of file NixTU.h.

◆ src()

std::string_view nixd::NixTU::src ( ) const
inline

Definition at line 49 of file NixTU.h.

◆ variableLookup()

const nixf::VariableLookupAnalysis * nixd::NixTU::variableLookup ( ) const
inline

Definition at line 45 of file NixTU.h.


The documentation for this class was generated from the following files: