from thinglang.lexer.lexical_token import LexicalToken
from thinglang.utils.type_descriptors import ValueType


class InlineCode(LexicalToken, ValueType):
    """
    Represents inline C++ code
    """

    STATIC = True

    def __init__(self, value, source_ref):
        super(InlineCode, self).__init__(value, source_ref)
        self.children = []

    def tree(self, depth):
        return self.value

    def finalize(self):
        pass

from thinglang.lexer.lexical_token import LexicalToken
from thinglang.utils.type_descriptors import ValueType


class InlineCode(LexicalToken, ValueType):
    """
    Represents inline C++ code
    """

    STATIC = True

    def __init__(self, value, source_ref):
        super(InlineCode, self).__init__(value, source_ref)
        self.children = []
        self.indent = 0

    def tree(self, depth):
        return self.value

    def finalize(self):
        pass

Allow inline code to be transpiled
Allow inline code to be transpiled
