lisette-semantics 0.3.4

Little language inspired by Rust that compiles to Go
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::passes::walk::NodeCtx;
use syntax::ast::Expression;

pub fn check_embed_over_impl(expression: &Expression, ctx: &NodeCtx) {
    let Expression::Interface { parents, .. } = expression else {
        return;
    };

    for parent in parents {
        if let Some(span) = &parent.impl_keyword_span {
            ctx.sink.push(diagnostics::lint::embed_over_impl(span));
        }
    }
}