Ejemplo n.º 1
0
 public void BindCursorResult(IAnalysisResult cursorResult, IParser parser)
 {
     if (!Cursors.ContainsKey(cursorResult.Name))
     {
         Cursors.Add(cursorResult.Name, cursorResult);
     }
     else
     {
         parser.ReportSyntaxError(cursorResult.LocationIndex, cursorResult.LocationIndex + cursorResult.Name.Length, string.Format("Module cursor {0} defined more than once.", cursorResult.Name), Severity.Error);
     }
 }