summaryrefslogtreecommitdiff
path: root/Source/DafnyExtension
Commit message (Collapse)AuthorAge
* Revert change 1997 (bfe7c149bef1). IDE performance. Don't delay the resolverGravatar qunyanm2016-02-29
| | | | until the editor is idle for 5 second.
* Implement 'extern' declaration modifier.Gravatar Richard L. Ford2016-01-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'extern' declaration modifier provides a more convenient way of interfacing Dafny code with C# source files and .Net DLLs. We support an 'extern' keyword on a module, class, function method, or method (cannot extern ghost). We check the CompileNames of all modules to make sure there are no duplicate names. Every Dafny-generated C# class is marked partial, so it can potentially be extended. The extern keyword could be accompanied by an optional string naming the corresponding C# method/class to connect to. If not given the name of the method/class is used. An 'extern' keyword implies an {:axiom} attribute for functions and methods, so their ensures clauses are assumed to be true without proof. In addition to the .dfy files, the user may supply C# files (.cs) and dynamic linked libraries (.dll) on command line. These will be passed onto the C# compiler, the .cs files as sources, and the .dll files as references. As part of this change the grammar was refactored some. New productions are - TopDecls - a list of top-level declarations. - TopDecl - a single top-level declaration - DeclModifiers - a list of declaration modifiers which are either 'abstract', 'ghost', 'static', 'protected', or 'extern'. They can be in any order and we diagnose duplicates. In addition, since they are not all allowed in all contexts, we check and give diagnostics if an DeclModifier appears where it is not allowed.
* VS IDE performance - invoke dafny parser when the buffer hasn't changed forGravatar qunyanm2016-01-20
| | | | | | half a second, but delay calling Dafny resolver until the text buffer hasn't been changed for 5 seconds. Also save the parsing result from TokenTagger in ITextBuffer's property instead of in a static field.
* Fix some VS IDE performance issues.Gravatar qunyanm2016-01-06
| | | | | | | | | | | | - cache scan results so it can be shared between different instances of DafnyTokenTagger - Instead of rescanning the whole text buffer upon a text change, only rescan the text span that the text change is in. - set the timer to half a second to match the comment at the beginnig of the file. The event change are only passed along to Dafny when the user stop typing for half a second. - Change framework dependence so the project can work with version 4.5 and higher.
* In the VS IDE, don't generate hover-text information for auto-generated ↵Gravatar leino2015-11-05
| | | | identifiers
* DafnyExtension: Add menu item for automatic induction (mainly developed by ↵Gravatar wuestholz2015-10-26
| | | | Rustan).
* Make /autoTriggers:1 be the default in Visual StudioGravatar leino2015-10-24
|
* In Visual Studio, be willing to display both resolution warnings and ↵Gravatar leino2015-10-24
| | | | | | verification errors (previously, verification errors were masked by resolution warnings)
* DafnyExtension: Re-added assembly reference.Gravatar wuestholz2015-10-08
|
* DafnyExtension: Fix concurrency issue.Gravatar wuestholz2015-10-08
|
* Make the Dafny extension compile on VS 2015 without any old versions.Gravatar wuestholz2015-10-08
|
* Fixed latent crash of hovertext/outlining with include.Gravatar Rustan Leino2015-10-02
| | | | (This also undoes two previous attempted fixes, which had accidentally disabled some outlining and hovertexts.)
* Fix a check that occasionally led to an out of bounds exception in the extensionGravatar Bryan Parno2015-09-17
|
* Discard error messages that refer to a non-nested TokenWrapper.Gravatar Clément Pit--Claudel2015-08-20
| | | | | | | | The VS extension already did that, but it also filtered out nested tokens. That prevented info about triggers from being reported. Other interfaces (the CLI and Emacs, in particular) should have the same ability. Surprinsingly, this doesn't cause any tests failures.
* Enable unicode output in the VS extensionGravatar Clément Pit--Claudel2015-08-19
|
* Refactor the error reporting codeGravatar Clément Pit--Claudel2015-08-18
| | | | | The new error reporting system has a simpler interface, isn't tied to the resolver, and contains error source information.
* Tiny refactoring in the extension's driverGravatar Clément Pit--Claudel2015-07-31
|
* Fix an issue with column numbers in the VS extensionGravatar Clément Pit--Claudel2015-07-31
| | | | | | The error came from the fact that Dafny now consistently used 0-based indexing. Boogie gets its traces from text that's inserted by Dafny in the Boogie file, so there's no need to apply an extra offset in the VS extension.
* Update the VS extension to use the error interface defined in 576eac2e17ffGravatar Clément Pit--Claudel2015-07-29
|
* Update DafnyExtension to use the parser constructor introduced in d2e394fc4b93Gravatar Clément Pit--Claudel2015-07-24
|
* Fix: Visual studio did not show warnings.Gravatar Clément Pit--Claudel2015-07-23
| | | | | To check if the fix works, try declaring a static top level function. Initial work on this patch by Rustan
* Fix identifiers in nested match patterns not showing in the IDE bug. RememberGravatar qunyanm2015-06-29
| | | | | BoundVars that are combined in rewriting of the nested match patterns so they show up in the IDE correctly.
* Added {:auto_generated} trigger, which indicates that a declaration was not ↵Gravatar Rustan Leino2015-06-02
| | | | explicitly mentioned in the input. This lets the Dafny IDE know not to add hovertext for these declarations.
* Add an infinite set collection type.Gravatar qunyanm2015-05-29
|
* DafnyExtension: Added experimental support for diagnosing timeouts.Gravatar wuestholz2015-05-18
|
* Added inductive predicatesGravatar leino2015-05-06
|
* Changed version to 1.9.3.20406 and updated copyright year to include 2015.Gravatar leino2015-04-06
|
* Copy z3.exe and Z3-LICENSE.txt (from Binaries directory to ↵Gravatar leino2015-04-06
| | | | Source/DafnyExtension directory) as pre-build events
* Add z3.exe and z3-license.txt to dafny binary and extension distribution.Gravatar qunyanm2015-04-06
|
* Remove unneeded reference from DafnyExtension.csproj (accidentally added by ↵Gravatar chrishaw2015-03-11
| | | | my previous checkin)
* Add DafnyOptions.txt, and have the Dafny Visual Studio extension read ↵Gravatar chrishaw2015-03-11
| | | | command-line options from DafnyOptions.txt during initialization. DafnyOptions.txt gets built into the VSIX file and is installed as part of the Dafny Visual Studio extension.
* Added 'protected' keyword (syntax)Gravatar leino2015-03-07
|
* Add imap keyword to VS/emacs/vim/latex filesGravatar chrishaw2015-02-26
|
* DafnyExtension: Made it use the more advanced on-demand re-verification by ↵Gravatar wuestholz2015-01-26
| | | | default.
* When ambiguous references all resolve to the same declaration, don't complainGravatar leino2015-01-09
|
* Fixed range bug that was causing extension to sometimes crashGravatar Bryan Parno2014-10-27
|
* Ensure that no file is processed twice, even if one command-line file is ↵Gravatar Bryan Parno2014-10-27
| | | | included by another command-line file.
* MergeGravatar leino2014-10-20
|\
* | Added types "char" and "string" (the latter being a synonym for "seq<char>").Gravatar leino2014-10-20
| | | | | | | | | | | | Added string literals with various escapes--a subset of those supported in C# and similar languages, including the C# verbatim strings. Previously, the "print" statement and custom attributes could support expression-or-string arguments; there is no longer a need to special-case these, so these arguments are now just expressions. Fixed lack of operator resolution in custom attributes.
| * DafnyExtension: Fixed minor issue in the menu.Gravatar wuestholz2014-10-19
|/
* MergeGravatar leino2014-09-29
|\
* | Shorter wait-for-idle time in the Dafny IDEGravatar leino2014-09-29
| |
| * DafnyExtension: Made it not log the pretty-printed program.Gravatar wuestholz2014-09-28
| |
| * DafnyExtension: minor change due to change in BoogieGravatar wuestholz2014-09-28
| |
| * Did more refactoring.Gravatar wuestholz2014-09-23
| |
| * Did more refactoring.Gravatar wuestholz2014-09-23
| |
| * DafnyExtension: minor changeGravatar wuestholz2014-09-22
|/
* Various resolution fixes and improvementsGravatar leino2014-08-26
| | | | | Added IsGoodHeap antecedent in (exists heap ...) in newtype Is axioms. Added IDE tool tips in newtype constraints.
* Changed syntax of derived types to "newtype"Gravatar leino2014-08-21
| | | | Added parsing of constraints (beyond parsing is yet to come)
* Forget the extra copy of DafnyRuntime.cs that gets copied into DafnyExtensionGravatar Rustan Leino2014-08-12
|