- 27 3月, 2014 2 次提交
- 26 3月, 2014 29 次提交
-
-
由 Pharring 提交于
A couple of allocations showed up in the typing traces due to Array.Clone via ImmutableArray<T>ToArray(). These can be reduced by using methods on ImmutableArray<T> directly. (changeset 1215219)
-
由 Pharring 提交于
TranslationSyntaxReference allocations were showing up in typing scenario profiles (3.7% for C# and 1% for VB). Fixes applied to both C# and VB: 1) Move the TranslationalSyntaxReference class down into the common layer and reduce its size by one field. Instead of storing the delegate, it's now an abstract base class. Implementations supply the "translate" method. 2) Size the ArrayBuilder instance exactly to avoid wastage. (changeset 1215193)
-
由 angocke 提交于
Update the VBCSCompiler test name to Roslyn.Compilers.CompilerServer.UnitTests to cause it to be run by Test.exe. (changeset 1215118)
-
由 YingP99 提交于
-
由 acasey 提交于
Copied the VB implementation. (changeset 1215080)
-
由 acasey 提交于
...unless they're defined in the current compilation (via VB embedding). Note: We originally wanted to reject constrained type parameters, but that would have blocked Interlocked.CompareExchange. Bonus: SourceNamedTypeSymbol.IsRestrictedBaseType should check the SpecialType property, rather than performing a series of equality tests. CR: AlekseyT (changeset 1215066)
-
由 manishv 提交于
Rename a source file: ICompilationUnitAnalyzer has been renamed to ISemanticModelAnalyzer, so rename the source file as well. (changeset 1214996)
-
由 acasey 提交于
Copied the C# implementation. CR: AlekseyT (changeset 1214957)
-
由 Pharring 提交于
-
由 nmgafter 提交于
-
由 chandera 提交于
Statement completion should not appear inside the bodies of partial method declaration. (changeset 1214704)
-
由 TomasMatousek 提交于
-
由 TomasMatousek 提交于
-
由 chandera 提交于
-
由 shyamn 提交于
Fixes to ensure correct file versions + miscellaneous small changes to project and code files. (changeset 1214598)
-
由 chandera 提交于
Fix an issue where Enum members were not included in the completion list for property parameters. (changeset 1214570)
-
由 nslottow 提交于
BugFix 911373: Diagnostics fail if a symbol has two global suppressions. This was introduced by refactoring and was not caught by code review. (changeset 1214557)
-
由 chandera 提交于
Since we haven't made classification extensible, there's no reason to use ExtensionMananger. In this case, ExtensionManager only prevents us from finding our own bugs. (changeset 1214494)
-
由 Pharring 提交于
-
由 chandera 提交于
Fixing an issue where Go To Definition didn't work inside inferred field initializers in anonymous types. (changeset 1214467)
-
由 Pharring 提交于
Fix various typos across the codebase. Mostly in comments, but some in resources and member or variable names. (changeset 1214314)
-
由 KirillOsenkov 提交于
Fix a bug where MSBuildWorkspace wasn't signing projects and thus InternalsVisibleTo was broken when opening solutions outside of Visual Studio. In an ongoing effort to make the compiler portable we moved out a StrongNameProvider and made it a part of CompilationOptions. When MSBuildWorkspace was creating CompilationOptions, it didn't pass a StrongNameProvider and so when loading signed projects all we were getting is a diagnostic: error CS7027: Error signing output with public key from file 'C:\...' -- Assembly signing not supported. We now pass better defaults when creating CompilationOptions for loading MSBuild projects via MSBuildWorkspace. This checkin also adds a unit-test to test IVT to signed projects in MSBuildWorkspace. To make it happen I introduce SolutionGeneration.cs, an API that can be used by unit-tests to construct MSBuild projects and solutions. This eliminates the need to bake in canned projects and solutions as resources in the test assembly. If this unit-testing approach proves comfortable and maintainable, I will be gradually removing canned resources from the test assembly and replacing them with declarative solution construction API calls. Here's an example: var solution = Solution( Project( ProjectName("Project1"), Sign, Document(string.Format( @"using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo(""Project2, PublicKey={0}"")] class C1 {{ }}", PublicKey))), Project( ProjectName("Project2"), Sign, ProjectReference("Project1"), Document(@"class C2 : C1 { }"))); This is a fully self-contained description of a solution sufficient to reproduce the bug fixed by this checkin. When writing a unit-test, no need to fabricate a sample solution and add it as resources. When reading a unit-test, no need to go somewhere look something up - it's all right here, all relevant details present, all irrelevant details (such as document names) omitted and filled out with reasonable defaults. This API will be further fleshed out as needed, as requirements arise. (changeset 1214118)
-
由 Kevin_H 提交于
-
https://git01.codeplex.com/forks/kevin_h/unittestdev由 Kevin_H 提交于
Fix up unit tests - fix signing for VBCSCompiler.exe (resign after adding largeaddressaware bit) - use simpler mechanism for determining "copied from" directory when using xUnit's shadow-copy feature (Environment.CurrentDirectory) - skip tests and file bugs for tests that are generating Debug.Asserts (changeset 1214051)
-
由 ChuckStoner 提交于
ENC: Move ENC implementation to specific namespace (.Emit) and subdirectory (Emit\EditAndContinue) within each project (changeset 1214011)
-
由 heejaechang 提交于
previously, it was a bit more complex than needed. I cleaned/simplified it a bit. (changeset 1213970)
-
由 manishv 提交于
Expose AnalyzerReferences instead of the actual Analyzers at workspace layer: After taking feedback from Matt and Neal, we have decided to expose the analyzer reference assemblies from the workspace, instead of the actual diagnostic analyzers. This change adds the following public types (analogous to MetadataReference hierarchy) and changes the workspace APIs to work with the base AnalyzerReference type: 1) AnalyzerReference: Base type representing all analyzer references. 2) AnalyzerFileReference: Analyzer reference based on actual assembly file on disk. Analyzers are loaded lazily and weakly cached. 3) AnalyzerImageReference: In-memory or pseudo analyzer reference which is just a wrapper over an array of analyzers. This should enable clients to add custom analyzers directly to a project, without requiring a file reference. 4) UnresolvedAnalyzerReference: Internal type for unresolved analyzer references on command line. (changeset 1213934)
-
由 KevinRansom 提交于
(changeset 1213897)
-
由 Basoundr_ms 提交于
The Type PersistentStorageOptions and WeakAction has been changed from Public to Internal since we dont want to expose these types to the Public. (changeset 1213888)
-
- 25 3月, 2014 6 次提交
-
-
由 Basoundr_ms 提交于
Some of the GFU related types that were introduced in the feature layer has been Public. Since we are releasing this to public, unrelated types which are public will be changed to Internal with this change. (changeset 1213874)
-
由 KirillOsenkov 提交于
-
由 Pharring 提交于
They're used in just one place each - in the various "DescendantNodes" routines. The allocations for these unions are wasteful because the size of the combined structure is the sum of the sizes each part plus one for a "discriminator" byte. The allocations were showing up as ~1.5% of the C# goldilocks typing scenario. This change replaces the "Stack of Union" with a "UnionStack". The Union stack is actually multiple stacks in one - one for each type and a disciminator "master" stack. We can also make use of object pooling to further reduce allocations. (changeset 1213710)
-
由 Pharring 提交于
MetadataHelpers.SplitQualifiedName interllay uses string.Split. This results in an allocation. The allocation is immediately converted to an ImmutableArray. This change replaces string.Split with a hand-rolled algorithm that tries to avoid allocations. First, zero or 1 length arrays avoid any intermediate allocations. For larger results, the exact length is precomputed and we try to get an ArrayBuilder from the pool. As a bonus, since "System" is such a frequent first string, we avoid a new substring allocation. (changeset 1213621)
-
由 shyamn 提交于
-
由 RoslynTeam 提交于
-
- 24 3月, 2014 1 次提交
-
-
由 VSadov 提交于
Couple more places where boxing can be avoided (changeset 1211849)
-
- 23 3月, 2014 2 次提交