12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef QLOW_SEM_CAST_H
- #define QLOW_SEM_CAST_H
- #include <memory>
- #include "Type.h"
- namespace qlow
- {
- namespace sem
- {
- // forward declaration
- class Type;
-
- class Cast;
- }
- }
- class qlow::sem::Cast
- {
- public:
- Type* to;
- bool isExplicit;
- inline Cast(Type* to) :
- to{ to },
- isExplicit{ true }
- {
- }
- inline Cast(Type* to, bool isExplicit) :
- to{ to },
- isExplicit{ isExplicit }
- {
- }
- };
- #endif // QLOW_SEM_CAST_H
|