import { TypeValue } from "./value" ; export type PrimitiveType = IntegerType | BooleanType | FloatType | StringType ; export type IntegerType = TypeValue ; export function isIntegerType ( node ) { return node . name === "integer" ; } export type BooleanType = TypeValue ; export function isBooleanType ( node ) { return node . name === "boolean" ; } export type FloatType = TypeValue ; export function isFloatType ( node ) { return node . name === "float" ; } export type StringType = TypeValue ; export function isStringType ( node ) { return node . name === "string" ; }