Esempio n. 1
0
 void WarnIfActionRoutineDiffers([NotNull] Syntax line, [NotNull] string description,
                                 [CanBeNull] ZilAtom thisRoutineName, [CanBeNull] ZilAtom lastRoutineName)
 {
     if (thisRoutineName != lastRoutineName)
     {
         Context.HandleError(new CompilerError(line.SourceLine,
                                               CompilerMessages._0_Mismatch_For_1_Using_2_As_Before,
                                               description,
                                               line.ActionName,
                                               lastRoutineName?.ToString() ?? "no " + description));
     }
 }