aboutsummaryrefslogtreecommitdiff
path: root/include/cps/SourceUnit.h
blob: 34266acf87d3bdfafba633d5ada1aab433710e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#pragma once
#include "cps/AST.h"
#include <string>
#include <vector>

namespace cps {
// The caller owns the parsed statements for the duration of compilation.
struct SourceUnit {
    std::string Path;
    const std::vector<std::unique_ptr<StmtAST>> &Statements;
    std::vector<bool> Visible;
    bool IsLibrary = false;
};
}