/// <inheritdoc/> public override ITypeMember Decode(LNode data, DecoderState state) { if (data.Calls(CodeSymbols.Fn) || data.Calls(CodeSymbols.Constructor)) { return(IrMethod.Decode(data, state)); } else { return(IrField.Decode(data, state)); } }
/// <inheritdoc/> public override LNode Encode(ITypeMember value, EncoderState state) { if (value is IField) { return(IrField.Encode((IField)value, state)); } else { return(IrMethod.Encode((IMethod)value, state)); } }