Skip to content

Instantly share code, notes, and snippets.

Errors Roslyn.Compilers.CompilerServer.UnitTests.dll:
Command: C:\Users\Adam\.nuget\packages\xunit.runner.console\2.1.0\tools\xunit.console.x86.exe "Binaries\Debug\Roslyn.
Compilers.CompilerServer.UnitTests.dll" -xml "Binaries\Debug\xUnitResults\Roslyn.Compilers.CompilerServer.UnitTests.d
ll.xml" -noshadow
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.HelloWorldVB [FAIL]
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.FallbackToVbc [FAIL]
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.ExecuteVbcBuildTaskWithServer [FAIL]
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.MultipleSimultaneousCompiles [FAIL]
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.ReferenceCachingVB [FAIL]
Microsoft.CodeAnalysis.CompilerServer.UnitTests.CompilerServerUnitTests.ExecuteCscBuildTaskWithServer [FAIL]
File: Microsoft.CodeAnalysis.Analyzers.dll, Size: 58056, Instructions: 3090 Switches: 0 (0%), OptimizableSwitches: 0 (0%), Size Saving: 0 (0%)
File: Microsoft.CodeAnalysis.CSharp.Analyzers.dll, Size: 16088, Instructions: 175 Switches: 0 (0%), OptimizableSwitches: 0 (0%), Size Saving: 0 (0%)
File: Microsoft.CodeAnalysis.Analyzers.dll, Size: 58056, Instructions: 3090 Switches: 0 (0%), OptimizableSwitches: 0 (0%), Size Saving: 0 (0%)
File: Microsoft.CodeAnalysis.VisualBasic.Analyzers.dll, Size: 16096, Instructions: 203 Switches: 0 (0%), OptimizableSwitches: 0 (0%), Size Saving: 0 (0%)
File: Microsoft.CodeAnalysis.Desktop.dll, Size: 186560, Instructions: 14256 Switches: 9 (0.06313131%), OptimizableSwitches: 9 (100%), Size Saving: 105 (0.05628216%)
File: Microsoft.CodeAnalysis.dll, Size: 1555120, Instructions: 135365 Switches:161 (0.1189377%), OptimizableSwitches: 161 (100%), Size Saving: 4324 (0.2780493%)
File: Microsoft.CodeAnalysis.dll, Size: 1555120, Instructions: 135365 Switches:161 (0.1189377%), OptimizableS
.method private
instance class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxToken TryScanToken (
valuetype Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxList`1<class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.VisualBasicSyntaxNode> precedingTrivia
) cil managed
{
// Method begins at RVA 0x1307a8
// Code size 2049 (0x801)
.maxstack 6
.locals init (
[0] class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxToken,
.method private
instance class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxToken TryScanToken (
valuetype Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxList`1<class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.VisualBasicSyntaxNode> precedingTrivia
) cil managed
{
// Method begins at RVA 0x1307a8
// Code size 2090 (0x82a)
.maxstack 6
.locals init (
[0] class Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxToken,
Imports CodeCracker
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.Diagnostics
Imports Microsoft.CodeAnalysis.CSharp
Public Class CatchEmpty
Inherits CodeCracker.CSharp.Bases.Design.Analyzer
Public Sub New()
MyBase.New(DiagnosticIDs.CatchEmpty, "Your catch maye include some exception", "{0}", Kinds:={SyntaxKind.CatchClause})
@AdamSpeight2008
AdamSpeight2008 / gist:1600610
Created January 12, 2012 13:49
BrainFuck in F# (50 LoC)
// Learn more about F# at http://fsharprogram.net
#light
module BrainFuck
open System
open System.Collections.Generic
exception UnmatchedBrace of string
let bf (program:string) (input: unit->char ) (output : char->unit) =
if program.Length=0 then ()