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

#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;
};
}