示例#1
0
 public void RunVerifier(IWpfTextView activeTextView)
 {
     DafnyLanguage.ProgressTagger tagger;
     if (activeTextView != null && DafnyLanguage.ProgressTagger.ProgressTaggers.TryGetValue(activeTextView.TextBuffer, out tagger))
     {
         MenuProxy.Output("verifier manually started\n");
         tagger.StartVerification(false);
     }
 }
示例#2
0
 public void StopResolver(IWpfTextView activeTextView)
 {
     DafnyLanguage.ResolverTagger resolver;
     if (activeTextView != null && DafnyLanguage.ResolverTagger.ResolverTaggers.TryGetValue(activeTextView.TextBuffer, out resolver))
     {
         MenuProxy.Output("resolver and verifier manually stopped\n");
         resolver.RunResolver = false;
         resolver.Program     = null;
     }
     DafnyLanguage.ProgressTagger tagger;
     if (activeTextView != null && DafnyLanguage.ProgressTagger.ProgressTaggers.TryGetValue(activeTextView.TextBuffer, out tagger))
     {
         tagger.StartVerification(false);
     }
 }
示例#3
0
        private void DocumentSaved(EnvDTE.Document document)
        {
            DafnyLanguage.ProgressTagger tagger;
            IWpfTextView textView = GetWpfTextView(document.FullName);

            if (textView != null && DafnyLanguage.ProgressTagger.ProgressTaggers.TryGetValue(textView.TextBuffer, out tagger))
            {
                MenuProxy.Output("restart verifier on file save: " + document.FullName + "\n");
                // stop the old verification
                tagger.StopVerification();

                // start a new one.
                tagger.StartVerification(false);
            }
        }