Example #1
0
 //Hints can be ignored, also a single hint is shown just once
 private void AddHint(ElaCompilerHint hint, int line, int col, params object[] args)
 {
     //Only show the same hint once
     if (options.ShowHints && !options.NoWarnings && !shownHints.ContainsKey(hint))
     {
         Errors.Add(new ElaMessage(Strings.GetHint(hint, args), MessageType.Hint,
                                   (Int32)hint, line, col));
         shownHints.Add(hint, hint);
     }
 }
Example #2
0
 //Hints can be ignored, also a single hint is shown just once
 private void AddHint(ElaCompilerHint hint, int line, int col, params object[] args)
 {
     //Only show the same hint once
     if (options.ShowHints && !options.NoWarnings && !shownHints.ContainsKey(hint))
     {
         Errors.Add(new ElaMessage(Strings.GetHint(hint, args), MessageType.Hint,
             (Int32)hint, line, col));
         shownHints.Add(hint, hint);
     }
 }
Example #3
0
 internal static string GetHint(ElaCompilerHint hint, params object[] args)
 {
     return(String.Format(hints.GetString(hint.ToString()), args));
 }
Example #4
0
 private void AddHint(ElaCompilerHint hint, ElaExpression exp, params object[] args)
 {
     AddHint(hint, exp.Line, exp.Column, args);
 }
Example #5
0
 internal static string GetHint(ElaCompilerHint hint, params object[] args)
 {
     return String.Format(hints.GetString(hint.ToString()), args);
 }
Example #6
0
 private void AddHint(ElaCompilerHint hint, ElaExpression exp, params object[] args)
 {
     AddHint(hint, exp.Line, exp.Column, args);
 }