- 15 1月, 2015 2 次提交
- 14 1月, 2015 38 次提交
-
-
由 Jared Parsons 提交于
Migrated the samples documentation from CodePlex to GitHub.
-
由 Stephen Toub 提交于
-
由 Stephen Toub 提交于
Update links in README.md with ported wiki content
-
由 Stephen Toub 提交于
-
由 Jared Parsons 提交于
Initial port and addition of README.md
-
由 Stephen Toub 提交于
-
由 Jared Parsons 提交于
-
由 RoslynTeam 提交于
-
由 vladres 提交于
Fix Bug 1102800: Uniformly support fullwidth delimiters in VB interpolated strings, fixes a failing assert (changeset 1396908)
-
由 jaredpar 提交于
1. Removes the project reference to CommonScritpingTests. This just existed to ensure the ReflectionEmit emmiter was present in the binaries directory. Our main infrastructure already guarantees this by virtue of building all projects. 2. Make the Emmiter load code tolerant of the ReflectionEmit Emitter not being present in binaries. This is the case when building the Open directory only via OSS. (changeset 1396895)
-
由 pgavlin 提交于
Tall syntax trees may overflow the stack when recursively calculating the SyntaxTree for a particularly deep node. This change replaces the recursive algorithm with an iterative algorithm using an explicit stack. (changeset 1396847)
-
由 RoslynTeam 提交于
-
由 vladres 提交于
-
由 jaredpar 提交于
This moves our settings / targets files into the Open directory. These files are a referenced by virtually all of the projects in the Open directory and are a necessary part of the build process. Making this change is a necessary step in removing the project scrubber. (changeset 1396832)
-
由 AlekseyTs 提交于
Enable command line compiler to produce XML doc comment file and embed it as a manifest resource at the same time. Fixes #444. (changeset 1396823)
-
由 Basoundr_ms 提交于
Bugfix# 1082026 This is a formatting case with Initializer Syntax that went unhandled. Testcase added previously ascertained the regression. Now modifying the testcase to handle the regression. Also a CR comment (changeset 1396819)
-
由 pgavlin 提交于
This is necessary to correctly reject invalid assembly references and to match the native compiler. (changeset 1396814)
-
由 manishv 提交于
Replace FixAllContext.GetDiagnosticsAsync(Project) API, which currently returns only non-source diagnostics for the given project with 2 APIs: (a) GetProjectDiagnosticsAsync(Project): Returns only non-source diagnostics for the given project. (b) GetAllDiagnosticsAsync(Project): Returns both non-source diagnostics for the given project and document diagnostics for all documents in the given project. This also fixes this API to stop returning document diagnostics with removed locations. (changeset 1396750)
-
由 jaredpar 提交于
This changes our projects to consume xUnit through NuGet instead of our checked in binaries in Closed\Tools\xUnit. This is another step in removing project scrubber. (changeset 1396548)
-
由 RoslynTeam 提交于
-
由 angocke 提交于
Rollback the previous rollback of the native client fixes and skip running in CI for now, due to a tricky chicken/egg problem. ***NO_CI*** (changeset 1396330)
-
由 mattwar 提交于
Moved SyntaxGenerator and editors into Editting namespace. CodeGeneration namespace is now all internal, and will eventually be removed. (changeset 1396303)
-
由 acasey 提交于
-
由 Kevin_H 提交于
Test helpers: Enable lookup of names with dots (explicit interface implementation) and generate more useful messages when member lookup fails. (changeset 1396244)
-
由 Kevin_H 提交于
-
由 tmeschter 提交于
This change adds an analyzer that raises errors when modifying the public APIs. The idea here is that each project contains a file, PublicAPI.txt, that lists the full names of the types and members that make up the public API of that assembly. When the diagnostic encounters a public symbol, it checks if the name is in the list. If not, it creates a diagnostic. While this does not prevent changes to the public API, it will make them very obvious in code reviews and source control history as the only way to get rid of the error is to update PublicAPI.txt. At the end of compilation, we also check for symbols that were declared in PublicAPI.txt but were not found in the project, or were not public, and report errors about those as well. The bulk of the change is actually in the fixer, as I choose to implement a custom FixAllProvider in order to test out that feature. (changeset 1396119)
-
由 mattwar 提交于
This change reduces confusion on the intended use of this workspace which is primarily for testing or doing analysis outside of a host environment without requirement to round-trip changes to disk. (changeset 1396090)
-
由 shyamn 提交于
Implement IEquatable<ISuggestedActions> for all Roslyn ISuggestedActions. The implementation treats any SuggestedActions that have the same provider as well as CodeActions with equal non-null 'Id's as equivalent. Also override 'Id 'for CodeActions of the following code fixes to reduce the occurence of duplicate fixes in the lightbulb menu - Add Imports, Generate Type and Generate Property / Field. Note: Addressing the above three code fixes takes care of the most common cases where users currently see duplicate fixes in the light bulb menu. We can apply similar de-duping for several other code fixes but we will address them separately later. Also fixing a couple of other problems discovered while testing this fix - 1. The 'implement interface' code fix provider was using same Id for the simple 'implement interface' code action as well as the 'implement dispose pattern' code action causing the latter to be filtered out. This was also causing problems during 'fix all occurrences'. Fixed this by including the type name of the code action in its Id. 2. When invoking SuggestedActionSet constructor, we were passing in linq queries that would construct new SuggestedActions in a couple of places. The platform implementation for SuggestedActionSet would store this query directly in a field and end up returning a new set of SuggestedActions each time the field was accssed. This ended up causing problems when the platform code tried to de-dupe the fixes (because different fixes would be returned each time). I have changed Roslyn-side code to pass in ImmutableArrays instead - but platform (Oleg) is also fixing the platfrom code to be more robust for this issue. (changeset 1396084)
-
由 tmeschter 提交于
Currently, analyzers can access the additional files passed in to the compiler through the AnalyzerOptions.AdditionalStreams property, which returns an ImmutableArray<AdditionalStream>. AdditionalStream just wraps a Stream, and a path to the file. Exposing these files as Streams is problematic for the diagnostic author. We always meant for these additional files to be additional *text* files, and not binary files. As such, Stream is too general a type to represent them. This makes it harder for diagnostic authors to consume additional files. They need to handle opening the stream, supplying the correct encoding, (possibly) splitting up the lines, and handling any errors that might arise while doing so. This breaking change replaces AdditionalStream with AdditionalText in the portable part of the compiler layer. The derived types AdditionalFileStream (compiler desktop) and AdditionalDocumentStream (workspace layer) have become AdditionalTextFile and AdditionalTextDocument, respectively. The compiler layer now handles reading the additional file contents into SourceTexts, as well as any errors that result. (changeset 1396073)
-
由 vladres 提交于
Fix Bug 1102783: Opening quotation mark in VB interpolated strings should not be restricted to ASCII double quote only (changeset 1396066)
-
由 mattwar 提交于
This reduces confusion for workspace authors on the intended use of these functions, and eliminates naming conflicts with host workspace API's. (changeset 1396064)
-
由 AlekseyTs 提交于
***NO_CI*** (changeset 1395705)
-
由 AlekseyTs 提交于
Prevent memory starvation or a compiler crash due to an OutOfMemoryException caused by constant folding for deeply nested constant string concatenation. To prevent memory starvation, especially inside a 64 bit process, we keep track of lengths of all (to a certain degree) constant string values stored in the bound expression tree that we are building and report an error as soon as the combined length of all of them is about to be greater than Int32.MaxValue. The length of the resulting constant value might still be shorter than Int32.MaxValue. ***NO_CI*** (changeset 1395692)
-
由 jaredpar 提交于
Change Description: This change moves Roslyn off of our custom version of xUnit to an official release (xUnit 1.9.2): - Deletes all of the custom xUnit binaries from Closed\Tools\xUnit - Put a subset of the official 1.9.2 binaries with no name mangling into Closed\Tools\xUnit. - Rebuilt our custom xUnit GUI (named xunit.gui.custom) against 1.9.2 and put it in Closed\Tools\xUnit - Updated the targets file, RunTests.ps1 and Test.exe to refer to the updated binary names. - Changed the Roslyn unit tests to work on standard xUnit. The biggest part of the effort was the last part, getting the tests to run on standard xUnit. The main issue here was many assumed they would be executed on a single STA thread and as a result cached many thread affinitized values into static fields. Fixing this involved mostly finding the values and annotating them with [ThreadStatic]. This does mean that MEF composition will happen several times during an xUnit run where before it happened only once. That is unfortunate but doesn't seem to regress the suites in a significant way on my machine. Using a multithreaded MEF container isn't an option here because the services end up caching thread affinitized WPF values. ForegroudThreadAffinitizedObject was the other largest change. It's use of a static ctor to establish the foreground thread is dangerous and should be correctly addressed in a future change. For now I added a method for tests to reset the identified foreground thread. More changes will be coming here for our use of xUnit. But they should be smaller and more targetted (deleting the extra sources, a better build story for the GUI, etc ...). Note: Why 1.9.2 instead of 2.0? We have several uses of custom xUnit extensibility that is not easily portable to 2.0. Best path forward is to delete that extensibility since it isn't really adding much and move us directly onto 2.0 in a later check in. (changeset 1395675)
-
由 manishv 提交于
-
由 manishv 提交于
The failing test SuppressSyntaxDiagnosticsOnRaiseEventAccessorBasic for bug 1103442 blows up intermittently on build queues with an exception thrown for trying to enqueue an event to the CompilationEventQueue after the queue has been completed. I was able to get a consistent repro by running the test in a Parallel.For for about 10k iterations. The failing call stack shows that the faulty symbol declared event is being generated for a SourceEventSymbol. Currently we generate the symbol declared event for event symbols within ExplicitInterfaceImplementations property. However, this property is accessible from the symbol constructor, as is the case for this failure. Generating the SymbolDeclaredEvent from a symbol constructor is inherently racy, as multiple threads might be trying to compute members of it's containing symbol and hence might instantiate the member symbols, even though just one thread will succeed in storing the computed members onto the field. This change moves the SymbolDeclaredEvent for events and properties out of ExplicitInterfaceImplementations and into GenerateDeclarationErrors, guarded by a special state flag. The modified failing test passes consistently on my machine after this fix. (changeset 1395533)
-
由 TomasMatousek 提交于
Remove unnecessary data and implementation details from XML produced by PdbToXml. Update PDB tests accordingly. The removed data include sizes and versions of CDI blobs, counts of elements (redundant since the elements themselves are included in the XML), hidden sequence point line/columns, etc. This change only affects tests. (changeset 1395517)
-
由 KirillOsenkov 提交于
-