protected override bool Visit(ASTAs node) { if (!Visit(node.Left, node.Right)) { return(false); } if (!(node.Right.TypeInfo is TypeType c) || c.Type.Equals(Cache.GetUnknown())) { Error(node.Position, "Can only cast to compile time types"); return(false); } node.TypeInfo = c.Type; return(true); }
protected override bool Visit(ASTAs node) { throw new NotImplementedException(); return(true); }
protected abstract bool Visit(ASTAs node);