Lines Matching defs:ast
20 CheckResult EveryChildInParentRange::operator()(CheckContext &ctx, const ir::AstNode *ast)
23 if (ast->Parent() == nullptr) {
26 ast->Iterate([&](const ir::AstNode *node) {
27 if (ast != node->Parent()) {
30 if (ast->Start().line > node->Start().line || ast->End().line < node->End().line) {
33 if (ast->Start().line == node->Start().line && ast->Start().index > node->Start().index) {
36 if (ast->End().line == node->End().line && ast->End().index < node->End().index) {