SizeOfExpression
using CLanguage.Compiler;
using CLanguage.Types;
using System;
namespace CLanguage.Syntax
{
public class SizeOfExpression : Expression
{
public Expression Query { get; set; }
public SizeOfExpression(Expression query)
{
Query = query;
}
public override CType GetEvaluatedCType(EmitContext ec)
{
return CBasicType.SignedInt;
}
protected override void DoEmit(EmitContext ec)
{
throw new NotImplementedException(GetType().Name + ": Emit");
}
}
}