public override BoundNode VisitObjectInitializerMember(BoundObjectInitializerMember node) { if (_inExpressionLambda && !node.Arguments.IsDefaultOrEmpty) { Error(ErrorCode.ERR_DictionaryInitializerInExpressionTree, node); } return(base.VisitObjectInitializerMember(node)); }
public override BoundNode VisitObjectInitializerMember(BoundObjectInitializerMember node) { // Although ref indexers are not declarable in C#, they may be usable if (!node.ArgumentRefKindsOpt.IsDefault) { _mightAssignSomething = true; } else { base.VisitObjectInitializerMember(node); } return(null); }