diff --git a/Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs b/Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs index c721b496a29e705753b27164a4f181e49f61ec8d..3c0b136928050c08cf2274ae796e379bfdcfe66e 100644 --- a/Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs +++ b/Src/Compilers/CSharp/Source/Binder/Binder_Expressions.cs @@ -1405,7 +1405,7 @@ private BoundBaseReference BindBase(BaseExpressionSyntax node, DiagnosticBag dia } else if (IsRefOrOutThisParameterCaptured(node, diagnostics)) { - // error has been reported by CheckThisRefernece + // error has been reported by CheckThisReference } else { diff --git a/Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs b/Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs index 6d734020baaf32d439ee97a42654b5117785c538..c7856546d278ff5152a914c17ed4535d101c88c9 100644 --- a/Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs +++ b/Src/Compilers/CSharp/Source/Symbols/Source/SourceAssemblySymbol.cs @@ -44,7 +44,7 @@ internal sealed class SourceAssemblySymbol : MetadataOrSourceAssemblySymbol, IAt // granted provided the simple assembly names match. When such access is granted // the assembly to which we have been granted access is noted (optimisticallyGrantedInternalsAccess). // After the public key has been computed, the set of optimistic grants is reexamined - // to insure that full identities match. This may produce diagnostics. + // to ensure that full identities match. This may produce diagnostics. private StrongNameKeys lazyStrongNameKeys; /// diff --git a/Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs b/Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs index c73a9b3a251e9320868016ac5e3b8ed9c5900871..b05751b693bb456a2b7e83dcdf7ef77096fc5d55 100644 --- a/Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs +++ b/Src/Compilers/CSharp/Source/Symbols/Symbol_Attributes.cs @@ -326,7 +326,7 @@ internal virtual void PostDecodeWellKnownAttributes(ImmutableArray - /// Win32 API calling convention for calling unmanged methods via PlatformInvoke. The call stack is cleaned up by the callee. + /// Win32 API calling convention for calling unmanaged methods via PlatformInvoke. The call stack is cleaned up by the callee. /// Standard = 2, diff --git a/Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs b/Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs index 379c3fd27794f74a45b25c8b04de119d42944551..164cc5c6329d95d0ef7f33841c6279303f004590 100644 --- a/Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs +++ b/Src/Compilers/Core/Source/PEWriter/Miscellaneous.cs @@ -126,7 +126,7 @@ string CustomMarshallerRuntimeArgument } /// - /// The unmanged element type of the unmanaged array. + /// The unmanaged element type of the unmanaged array. /// -1 if it should be omitted from the marshal blob. /// System.Runtime.InteropServices.UnmanagedType ElementType diff --git a/Src/Compilers/Core/Source/PEWriter/PeWriter.cs b/Src/Compilers/Core/Source/PEWriter/PeWriter.cs index 40f69b0db21a68b819442ec639e89f7f14a1d4c5..fa62150d717bda784e47737dcd747c429d6c9341 100644 --- a/Src/Compilers/Core/Source/PEWriter/PeWriter.cs +++ b/Src/Compilers/Core/Source/PEWriter/PeWriter.cs @@ -7394,7 +7394,7 @@ private void WriteTextSection(System.IO.Stream peStream, MemoryStream metadataSt this.WriteManagedResources(peStream); this.WriteSpaceForHash(peStream); this.WriteDebugTable(peStream); - // this.WriteUnmangedExportStubs(); + // this.WriteUnmanagedExportStubs(); if (this.emitRuntimeStartupStub) this.WriteImportTable(peStream); if (this.emitRuntimeStartupStub) this.WriteNameTable(peStream); if (this.emitRuntimeStartupStub) this.WriteRuntimeStartupStub(peStream); @@ -7579,7 +7579,7 @@ private void WriteDebugTable(System.IO.Stream peStream) stream.Free(); } - // private void WriteUnmangedExportStubs() { } + // private void WriteUnmanagedExportStubs() { } private void WriteRuntimeStartupStub(System.IO.Stream peStream) { diff --git a/Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb b/Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb index fb27c98394dc2a7543c0d09cbef44c490eaf609e..52806183d5b602f78e93aece54521293fadd8d84 100644 --- a/Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb +++ b/Src/Compilers/VisualBasic/Source/Binding/Binder_Expressions.vb @@ -3425,7 +3425,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ' If we can't find a common type, create an error type. If all the types have a common name, ' that name is used as the type of the error type (useful in ambiguous type lookup situations) Private Function GetCommonExpressionType( - symbolRefernce As VisualBasicSyntaxNode, + symbolReference As VisualBasicSyntaxNode, symbols As ImmutableArray(Of Symbol), constantFieldsInProgress As SymbolsInProgress(Of FieldSymbol) ) As TypeSymbol @@ -3438,7 +3438,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic For i As Integer = 0 To symbols.Length - 1 - Dim expressionType As TypeSymbol = GetExpressionType(symbolRefernce, symbols(i), constantFieldsInProgress, diagnostics) + Dim expressionType As TypeSymbol = GetExpressionType(symbolReference, symbols(i), constantFieldsInProgress, diagnostics) If expressionType IsNot Nothing Then @@ -3471,7 +3471,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ' Get the "expression type" of a symbol when used in an expression. Private Function GetExpressionType( - symbolRefernce As VisualBasicSyntaxNode, + symbolReference As VisualBasicSyntaxNode, s As Symbol, constantFieldsInProgress As SymbolsInProgress(Of FieldSymbol), diagnostics As DiagnosticBag @@ -3488,7 +3488,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic Case SymbolKind.Parameter Return DirectCast(s, ParameterSymbol).Type Case SymbolKind.Local - Return GetLocalSymbolType(DirectCast(s, LocalSymbol), symbolRefernce, diagnostics) + Return GetLocalSymbolType(DirectCast(s, LocalSymbol), symbolReference, diagnostics) Case SymbolKind.RangeVariable Return DirectCast(s, RangeVariableSymbol).Type Case Else diff --git a/Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb b/Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb index 2b971a4839f5d4aa33f42b3f5488ccce9403ea76..e35cca05bf98f5085aa61730135849e9e4d45a61 100644 --- a/Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb +++ b/Src/Compilers/VisualBasic/Source/Binding/Binder_Statements.vb @@ -2254,7 +2254,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic ByRef actualEventAccess As BoundEventAccess, ByRef eventSymbol As EventSymbol) As BoundExpression - ' event must be a simple name that could be qualified and perhaps parethesised + ' event must be a simple name that could be qualified and perhaps parethesized ' Examples: foo , (foo) , (bar.foo) , baz.moo(of T).goo Dim notParenthesizedSyntax = node While notParenthesizedSyntax.Kind = SyntaxKind.ParenthesizedExpression diff --git a/Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb b/Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb index 2750f6c1a5f48e94d6ebfb8f311b5ef2c498e9b3..f0a9dfa5c7d9ef8cc81f995f89679221618b8e5d 100644 --- a/Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb +++ b/Src/Compilers/VisualBasic/Source/BoundTree/BoundExpressionExtensions.vb @@ -27,7 +27,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic End If 'TODO: I have seen other places where we do similar digging. - ' It seems a bit bug-prone. What if Nothing is wrapped in more than one conversion or a parenthesised or whatever...? + ' It seems a bit bug-prone. What if Nothing is wrapped in more than one conversion or a parenthesized or whatever...? ' Perhaps it may be worth it to introduce BoundDefault and reduce the "default value" patterns to ' a node with unambiguous meaning? diff --git a/Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb b/Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb index cf0a8931bc2a33995af8d6d9941c726c0a2c8019..3288c78fb135b1cefa95d1a098768d99cd004d03 100644 --- a/Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb +++ b/Src/Compilers/VisualBasic/Source/CodeGen/EmitAddress.vb @@ -86,7 +86,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGen Case BoundKind.Parenthesized ' rewriter should take care of Parethesized ' - ' we do not know how to emit address of a parethesised without context. + ' we do not know how to emit address of a parethesized without context. ' when it is an argument like foo((arg)), it must be cloned, ' in other cases like (receiver).foo() it might not need to be... ' diff --git a/Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb b/Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb index 1fade063742d906d8f673c098b19e97a5535cdfc..d82ecb0cb77414accaa480a7a6735118b473ff41 100644 --- a/Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb +++ b/Src/Compilers/VisualBasic/Source/CodeGen/EmitExpression.vb @@ -1253,7 +1253,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGen syntaxNode As VisualBasicSyntaxNode) Debug.Assert(Not constructor.IsParameterlessStructConstructor(requireSynthesized:=True), - "do not call synthesised struct constructors, they do not exist") + "do not call synthesized struct constructors, they do not exist") EmitArguments(arguments, constructor.Parameters) _builder.EmitOpCode(ILOpCode.Newobj, ILOpCode.Newobj.StackPushCount() - arguments.Length) diff --git a/Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb b/Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb index cbd3499d6865e3d45ac3f6551a0f0eb893fb8aa6..029bf3294080a97e2b48f1ccb6cf9ec293f0598d 100644 --- a/Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb +++ b/Src/Compilers/VisualBasic/Source/CommandLine/CommandLineParser.vb @@ -1617,7 +1617,7 @@ lVbRuntimePlus: Exit Do End If - ' Expresion parsed successfully --> evaluate it + ' Expression parsed successfully --> evaluate it Dim value As InternalSyntax.CConst = InternalSyntax.ExpressionEvaluator.EvaluateExpression( @@ -1636,7 +1636,7 @@ lVbRuntimePlus: Exit Do End If - ' Expresion evaluated successfully --> add to 'defines' + ' Expression evaluated successfully --> add to 'defines' If defines.ContainsKey(symbolName) Then defines = defines.Remove(symbolName) End If diff --git a/Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb b/Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb index 87433082883a24d0c2e8a45798aada3fb036ebf5..d3154afa93da176702746a60e83e55b967ce31a4 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/AsyncRewriter/AsyncRewriter.AsyncMethodToClassRewriter.Await.vb @@ -260,8 +260,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic Return Me.F.Block(blockBuilder.ToImmutableAndFree()) End Function - Protected Overrides Function MaterializeProxy(origExpresion As BoundExpression, proxy As CapturedSymbolOrExpression) As BoundNode - Return proxy.Materialize(Me, origExpresion.IsLValue) + Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As CapturedSymbolOrExpression) As BoundNode + Return proxy.Materialize(Me, origExpression.IsLValue) End Function Friend Overrides Sub AddProxyFieldsForStateMachineScope(proxy As CapturedSymbolOrExpression, proxyFields As ArrayBuilder(Of FieldSymbol)) diff --git a/Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb b/Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb index efe59c1233371ed0e3ab4b3b43ccf61ca7c5694b..e42d1d9dac79f8efd42c60ce005662abb6c482b3 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb @@ -209,11 +209,11 @@ Namespace Microsoft.CodeAnalysis.VisualBasic proxyFields.Add(proxy) End Sub - Protected Overrides Function MaterializeProxy(origExpresion As BoundExpression, proxy As FieldSymbol) As BoundNode + Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As FieldSymbol) As BoundNode Dim syntax As VisualBasicSyntaxNode = Me.F.Syntax Dim framePointer As BoundExpression = Me.FramePointer(syntax, proxy.ContainingType) Dim proxyFieldParented = proxy.AsMember(DirectCast(framePointer.Type, NamedTypeSymbol)) - Return Me.F.Field(framePointer, proxyFieldParented, origExpresion.IsLValue) + Return Me.F.Field(framePointer, proxyFieldParented, origExpression.IsLValue) End Function End Class End Class diff --git a/Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb b/Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb index 5a93d1cdd5d57263c3550ae74786b1810d01ccb9..3bbc81918b09a9d40dc299710d37d3f2b9dce9b4 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/LambdaRewriter/LambdaRewriter.vb @@ -251,13 +251,13 @@ Namespace Microsoft.CodeAnalysis.VisualBasic Return New BoundLocal(syntax, localFrame, isLValue:=False, type:=localFrame.Type) End Function - Protected Overrides Function MaterializeProxy(origExpresion As BoundExpression, proxy As FieldSymbol) As BoundNode - Dim frame As BoundExpression = FramePointer(origExpresion.Syntax, proxy.ContainingType) + Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As FieldSymbol) As BoundNode + Dim frame As BoundExpression = FramePointer(origExpression.Syntax, proxy.ContainingType) Dim constructedProxyField = proxy.AsMember(DirectCast(frame.Type, NamedTypeSymbol)) - Return New BoundFieldAccess(origExpresion.Syntax, + Return New BoundFieldAccess(origExpression.Syntax, frame, constructedProxyField, - origExpresion.IsLValue, + origExpression.IsLValue, constructedProxyField.Type) End Function diff --git a/Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb b/Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb index b70d67bdcd5c4e7dae58ce0e4d60a23fd19b2813..44d6549337616ead245b1ab8c57be978a470df36 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/LocalRewriter/LocalRewriter_AddRemoveHandler.vb @@ -233,7 +233,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic Return DirectCast(node, BoundEventAccess) End If - Debug.Assert(node.Kind = BoundKind.Parenthesized, "node can only be EventAccess or Parenthesised") + Debug.Assert(node.Kind = BoundKind.Parenthesized, "node can only be EventAccess or Parenthesized") Return UnwrapEventAccess(DirectCast(node, BoundParenthesized).Expression) End Function diff --git a/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb b/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb index 75178a9b9f21837cb9bd4acb65d12fcdd5823ff4..472737ddaf6773106354a68130896dd54119db00 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.SynthesizedMethod.vb @@ -20,7 +20,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic Inherits BoundTreeRewriter ''' - ''' Base for synthesised Lambda methods. + ''' Base for synthesized Lambda methods. ''' Just provides a bunch of defaults ''' Friend MustInherit Class SynthesizedMethod diff --git a/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb b/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb index a247c2581d361a7f861f5f96aa6a44ab981eeb64..eedb9c8fb6b3da1cc3f2089f6745c501eb4e8637 100644 --- a/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb +++ b/Src/Compilers/VisualBasic/Source/Lowering/MethodToClassRewriter/MethodToClassRewriter.vb @@ -153,7 +153,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic End If End Function - Protected MustOverride Function MaterializeProxy(origExpresion As BoundExpression, proxy As TProxy) As BoundNode + Protected MustOverride Function MaterializeProxy(origExpression As BoundExpression, proxy As TProxy) As BoundNode ''' ''' Maps not-lifted parameter, since the parameter was not lifted, it must be an actual lambda's parameter diff --git a/Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb b/Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb index a0514d167b68c501c5e08cdb581abab0782c9517..f6dd7a00419973b4005ba8cb57782eff18012ed0 100644 --- a/Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb +++ b/Src/Compilers/VisualBasic/Source/Preprocessor/ExpressionEvaluator.vb @@ -153,7 +153,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Return EvaluateLiteralExpression(DirectCast(expr, LiteralExpressionSyntax)) Case SyntaxKind.ParenthesizedExpression - Return EvaluateParenthesisedExpression(DirectCast(expr, ParenthesizedExpressionSyntax)) + Return EvaluateParenthesizedExpression(DirectCast(expr, ParenthesizedExpressionSyntax)) Case SyntaxKind.IdentifierName Return EvaluateIdentifierNameExpression(DirectCast(expr, IdentifierNameSyntax)) @@ -264,7 +264,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax End Function - Private Function EvaluateParenthesisedExpression(expr As ParenthesizedExpressionSyntax) As CConst + Private Function EvaluateParenthesizedExpression(expr As ParenthesizedExpressionSyntax) As CConst Return EvaluateExpressionInternal(expr.Expression) End Function diff --git a/Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb b/Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb index 3ea03c7a687c40e98d3b1faa82eac06e0b4179bb..15d1fcc281d1a9af6b035dc2b14bd1f87400b34d 100644 --- a/Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb +++ b/Src/Compilers/VisualBasic/Source/Symbols/Source/SourceAssemblySymbol.vb @@ -779,7 +779,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ' granted provided the simple assembly names match. When such access is granted ' the assembly to which we have been granted access is noted (m_optimisticallyGrantedInternalsAccess). ' After the public key has been computed, the set of optimistic grants is reexamined - ' to insure that full identities match. This may produce diagnostics. + ' to ensure that full identities match. This may produce diagnostics. ' EDMAURER please don't use thread local storage widely. This is hoped to be a one-off usage. diff --git a/Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml b/Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml index 6db88113719c3592b7feff53567129fa5cbeac4b..9c2baacb6628f0da04293710c82065d4d83fb11c 100644 --- a/Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml +++ b/Src/Compilers/VisualBasic/Source/Syntax/Syntax.xml @@ -47,7 +47,7 @@ Most significant structural changes from native/LM trees: Unify FromItem and LinqSource into the same node (CollectionRangeVariable). - WHen FromExpresison was used as the source of an Aggregate, instead use JoinOrAggregateSource. + When FromExpressison was used as the source of an Aggregate, instead use JoinOrAggregateSource. Remove CrossJoin node, just represent as FromOperators with a source. --> diff --git a/Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs b/Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs index 91f5cac3225b204653ac35cc59d2104e72156945..a98b46f063b4c02d29f6f370af6677497798d6dd 100644 --- a/Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs +++ b/Src/Workspaces/CSharp/CodeGeneration/CSharpSyntaxFactory.cs @@ -95,7 +95,7 @@ public override SyntaxNode CreateElementAccessExpression(SyntaxNode expression, public override SyntaxNode CreateDefaultExpression(ITypeSymbol type) { - // If it's just a reference type, then "null" is the default expresison for it. Note: + // If it's just a reference type, then "null" is the default expressison for it. Note: // this counts for actual reference type, or a type parameter with a 'class' constraint. // Also, if it's a nullable type, then we can use "null". if (type.IsReferenceType || diff --git a/Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs b/Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs index e6d1ba3071517414c9a6a22e0445899c54c4af3e..fbe9933736554db834398122fa03eb02c0f3f5b6 100644 --- a/Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs +++ b/Src/Workspaces/Core/FindSymbols/FindReferences/DependentProjectsFinder.cs @@ -225,13 +225,13 @@ private static async Task AddSubmissionDependentProjectsAsync(Solution solution, var compilation = await project.GetCompilationAsync(cancellationToken).ConfigureAwait(false); if (compilation.PreviousSubmission != null) { - var refrencedProject = solution.GetProject(compilation.PreviousSubmission.Assembly); + var referencedProject = solution.GetProject(compilation.PreviousSubmission.Assembly); List referencingSubmissions = null; - if (!projectIdsToReferencingSubmissionIds.TryGetValue(refrencedProject.Id, out referencingSubmissions)) + if (!projectIdsToReferencingSubmissionIds.TryGetValue(referencedProject.Id, out referencingSubmissions)) { referencingSubmissions = new List(); - projectIdsToReferencingSubmissionIds.Add(refrencedProject.Id, referencingSubmissions); + projectIdsToReferencingSubmissionIds.Add(referencedProject.Id, referencingSubmissions); } referencingSubmissions.Add(project.Id); diff --git a/Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs b/Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs index ea94ebda14c243a8ac324774994d2adf4a29b75e..340bc4335364fedbff5b82ff72c5bb4ccfb0ef6a 100644 --- a/Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs +++ b/Src/Workspaces/Core/Formatting/Context/FormattingContext.InitialContextFinder.cs @@ -98,7 +98,7 @@ private List GetInitialIndentBlockOperations(SyntaxToken s node = node.Parent; } - // make sure operations we have has effects over the formating span + // make sure operations we have has effects over the formatting span operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span)); // we couldn't find anything diff --git a/Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb b/Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb index d3fb1f37f44f1b1b4445afe6f046599131990c50..cbac31beaa14d56b0713a6f28ee489cde87ed121 100644 --- a/Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb +++ b/Src/Workspaces/VisualBasic/Extensions/CastAnalyzer.vb @@ -201,7 +201,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions End If ' If removing the cast will result in a change in semantics of any of the parenting nodes, we won't remove it. - ' We do this even for identity casts in case removing that cast might affect type inferrence. + ' We do this even for identity casts in case removing that cast might affect type inference. If speculationAnalyzer.ReplacementChangesSemantics() Then Return False End If