<commit_before>#ifndef ARUAB_AST_TYPE_H__
#define ARUAB_AST_TYPE_H__
#pragma once

#include "symbol-variant.h"
#include "target.h"
#include "token.h"

namespace arua {

enum class PrimitiveType {
	SCALAR,
	ARRAY,
	FUNCTION,
	SYMBOL,
};

class Type : public virtual Token, public Target {
public:
	Type(PrimitiveType primType);

	PrimitiveType getPrimitiveType() const throw();

	virtual bool equals(const Type &type) const throw() = 0;

	// ThisType = OtherType -- possible?
	virtual bool canAssignTo(const Type &other) const throw() = 0;

	bool operator ==(const Type &other) const;

private:
	PrimitiveType primType;
};<commit_msg>remove symbol-variant include from type<commit_after>#ifndef ARUAB_AST_TYPE_H__
#define ARUAB_AST_TYPE_H__
#pragma once

#include "target.h"
#include "token.h"

namespace arua {

enum class PrimitiveType {
	SCALAR,
	ARRAY,
	FUNCTION,
	SYMBOL,
};

class Type : public virtual Token, public Target {
public:
	Type(PrimitiveType primType);

	PrimitiveType getPrimitiveType() const throw();

	virtual bool equals(const Type &type) const throw() = 0;

	// ThisType = OtherType -- possible?
	virtual bool canAssignTo(const Type &other) const throw() = 0;

	bool operator ==(const Type &other) const;

private:
	PrimitiveType primType;
};
{'fraction_non_alphanumeric': 0.1060126582278481, 'fraction_numerical': 0.0031645569620253164, 'mean_word_length': 5.200980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2076250', 'n_tokens_mistral': 423, 'n_tokens_neox': 416, 'n_words': 128}