예제 #1
0
        public void OnFileChanged(DocumentChange documentChange)
        {
            ResetCache();
            Project.UpdateProperties();

            var visitor = new CalcSymbolErrorsAstVisitor();

            this.Ast.Accept(visitor);
            var errorCount = visitor.ErrorCount;

            if (_errorCount != errorCount)
            {
                OnRedraw();
            }
            _errorCount = errorCount;
        }
예제 #2
0
파일: File.cs 프로젝트: derigel23/Nitra
    public void OnFileChanged(DocumentChange documentChange)
    {
      ResetCache();
      Project.UpdateProperties();

      var visitor = new CalcSymbolErrorsAstVisitor();
      this.Ast.Accept(visitor);
      var errorCount = visitor.ErrorCount;
      if (_errorCount != errorCount)
        OnRedraw();
      _errorCount = errorCount;
    }