<commit_before>/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SKSL_BINARYEXPRESSION
#define SKSL_BINARYEXPRESSION

#include "src/sksl/SkSLCompiler.h"
#include "src/sksl/SkSLIRGenerator.h"
#include "src/sksl/SkSLLexer.h"
#include "src/sksl/ir/SkSLExpression.h"
#include "src/sksl/ir/SkSLFieldAccess.h"
#include "src/sksl/ir/SkSLIndexExpression.h"
#include "src/sksl/ir/SkSLSwizzle.h"
#include "src/sksl/ir/SkSLTernaryExpression.h"

namespace SkSL {

static bool check_ref(Expression* expr) {
    switch (expr->fKind) {
        case Expression::kExternalValue_Kind:
            return true;
        case Expression::kFieldAccess_Kind:
            return check_ref(((FieldAccess*) expr)->fBase.get());
        case Expression::kIndex_Kind:
            return check_ref(((IndexExpression*) expr)->fBase.get());
        case Expression::kSwizzle_Kind:
            return check_ref(((Swizzle*) expr)->fBase.get());
        case Expression::kTernary_Kind: {
            TernaryExpression* t = (TernaryExpression*) expr;
            return check_ref(t->fIfTrue.get()) && check_ref(t->fIfFalse.get());<commit_msg>Fixed build error blocking Android roll<commit_after>/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SKSL_BINARYEXPRESSION
#define SKSL_BINARYEXPRESSION

#include "src/sksl/SkSLCompiler.h"
#include "src/sksl/SkSLIRGenerator.h"
#include "src/sksl/SkSLLexer.h"
#include "src/sksl/ir/SkSLExpression.h"
#include "src/sksl/ir/SkSLFieldAccess.h"
#include "src/sksl/ir/SkSLIndexExpression.h"
#include "src/sksl/ir/SkSLSwizzle.h"
#include "src/sksl/ir/SkSLTernaryExpression.h"

namespace SkSL {

static inline bool check_ref(Expression* expr) {
    switch (expr->fKind) {
        case Expression::kExternalValue_Kind:
            return true;
        case Expression::kFieldAccess_Kind:
            return check_ref(((FieldAccess*) expr)->fBase.get());
        case Expression::kIndex_Kind:
            return check_ref(((IndexExpression*) expr)->fBase.get());
        case Expression::kSwizzle_Kind:
            return check_ref(((Swizzle*) expr)->fBase.get());
        case Expression::kTernary_Kind: {
            TernaryExpression* t = (TernaryExpression*) expr;
            return check_ref(t->fIfTrue.get()) && check_ref(t->fIfFalse.get());
{'fraction_non_alphanumeric': 0.12882185079494496, 'fraction_numerical': 0.003261312678353037, 'mean_word_length': 3.6565464895635675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4650318', 'n_tokens_mistral': 811, 'n_tokens_neox': 818, 'n_words': 165}