Commit 8dd7777 1 parent 01723ad commit 8dd7777 Copy full SHA for 8dd7777
File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include " thorin/check.h"
4
4
#include " thorin/def.h"
5
- #include " thorin/world.h"
6
5
#include " thorin/rewrite.h"
6
+ #include " thorin/world.h"
7
+
7
8
#include " thorin/fe/scopes.h"
8
9
9
10
namespace thorin ::fe {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class AST {
18
18
public:
19
19
AST (Loc loc)
20
20
: loc_(loc) {}
21
- virtual ~AST () {};
21
+ virtual ~AST (){};
22
22
23
23
Loc loc () const { return loc_; }
24
24
@@ -79,7 +79,7 @@ class Bndr : public AST {
79
79
80
80
Sym sym () const { return sym_; }
81
81
bool is_anonymous () const { return sym_.is_anonymous (); }
82
- virtual const Def* type (World&) const = 0;
82
+ virtual const Def* type (World&) const = 0;
83
83
virtual void inject (Scopes&, const Def*) const = 0;
84
84
85
85
private:
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ const Def* Parser::parse_pi() {
399
399
400
400
if (!dom->is_anonymous ()) scopes_.bind (dom->sym (), var);
401
401
dom->inject (scopes_, var);
402
- // for (auto [sym, i] : binders) scopes_.bind(sym, pi->var(i)); // TODO location
402
+ // for (auto [sym, i] : binders) scopes_.bind(sym, pi->var(i)); // TODO location
403
403
404
404
expect (Tok::Tag::T_arrow, " dependent function type" );
405
405
auto codom = parse_expr (" codomain of a dependent function type" , Tok::Prec::Arrow);
@@ -687,7 +687,7 @@ void Parser::parse_nom() {
687
687
scopes_.bind (sym, nom);
688
688
689
689
scopes_.push ();
690
- // for (auto [sym, i] : binders) scopes_.bind(sym, nom->var(i));
690
+ // for (auto [sym, i] : binders) scopes_.bind(sym, nom->var(i));
691
691
if (external) nom->make_external ();
692
692
693
693
scopes_.push ();
You can’t perform that action at this time.
0 commit comments