Mono.CSharp.Constructor.GetSignatureForError C# (CSharp) Method

GetSignatureForError() public method

public GetSignatureForError ( ) : string
return string
        public override string GetSignatureForError()
        {
            return base.GetSignatureForError () + parameters.GetSignatureForError ();
        }

Usage Example

Example #1
0
		public void AddConstructor (Constructor c)
		{
			bool is_static = (c.ModFlags & Modifiers.STATIC) != 0;
			if (!AddToContainer (c, is_static ? Constructor.ConstructorName : Constructor.TypeConstructorName))
				return;
			
			if (is_static && c.ParameterInfo.IsEmpty){
				if (default_static_constructor != null) {
				    Report.SymbolRelatedToPreviousError (default_static_constructor);
					Report.Error (111, c.Location,
						"A member `{0}' is already defined. Rename this member or use different parameter types",
						c.GetSignatureForError ());
				    return;
				}

				default_static_constructor = c;
			} else {
				if (c.ParameterInfo.IsEmpty)
					default_constructor = c;
				
				if (instance_constructors == null)
					instance_constructors = new List<Constructor> ();
				
				instance_constructors.Add (c);
			}
		}
All Usage Examples Of Mono.CSharp.Constructor::GetSignatureForError