Mono.CSharp.SwitchLabel.Error_AlreadyOccurs C# (CSharp) Method

Error_AlreadyOccurs() public method

public Error_AlreadyOccurs ( ResolveContext ec, System.TypeSpec switch_type, SwitchLabel collision_with ) : void
ec ResolveContext
switch_type System.TypeSpec
collision_with SwitchLabel
return void
		public void Error_AlreadyOccurs (ResolveContext ec, TypeSpec switch_type, SwitchLabel collision_with)
		{
			string label;
			if (converted == null)
				label = "default";
			else if (converted == NullStringCase)
				label = "null";
			else
				label = converted.ToString ();
			
			ec.Report.SymbolRelatedToPreviousError (collision_with.loc, null);
			ec.Report.Error (152, loc, "The label `case {0}:' already occurs in this switch statement", label);
		}