CheckWarningCode() public method

public CheckWarningCode ( int code, Mono.CSharp.Location loc ) : bool
code int
loc Mono.CSharp.Location
return bool
Ejemplo n.º 1
0
 public void WarningDisable(Location location, int code, Report Report)
 {
     if (Report.CheckWarningCode(code, location))
     {
         regions.Add(new Disable(location.Row, code));
     }
 }
Ejemplo n.º 2
0
		public void WarningEnable (Location location, int code, Report Report)
		{
			if (!Report.CheckWarningCode (code, location))
				return;

			if (Report.IsWarningDisabledGlobally (code))
				Report.Warning (1635, 1, location, "Cannot restore warning `CS{0:0000}' because it was disabled globally", code);

			regions.Add (new Enable (location.Row, code));
		}
Ejemplo n.º 3
0
		public void WarningEnable (Location location, int code, Report Report)
		{
			if (Report.CheckWarningCode (code, location))
				regions.Add (new Enable (location.Row, code));
		}
Ejemplo n.º 4
0
		public void WarningEnable (Location location, int code, Report Report)
		{
			if (!Report.CheckWarningCode (code, location))
				return;

			if (Report.IsWarningDisabledGlobally (code))
				Report.Warning (1635, 1, location, "Cannot restore warning `CS{0:0000}' because it was disabled globally", code);

			regions.Add (new Enable (location.Row, code));
		}