提交 b28a71cd 编写于 作者: J John Doe 提交者: Cheryl Borley

Typo (#28177)

* accesibility -> accessibility

* Acess -> Access

* actua -> actual

* agnotic -> agnostic

* aks -> ask

* Algoritm -> Algorithm

* alphabeitcally -> alphabetically

* Analayzer -> Analyzer

* analyer -> analyzer

* anlysis -> analysis
上级 6da27094
......@@ -78,7 +78,7 @@ internal static string ToParameterPrefix(this RefKind kind)
// used internally to track `In` arguments that were specified with `In` modifier
// as opposed to those that were specified with no modifiers and matched `In` parameter
// There is at least one kind of anlysis that cares about this distinction - async stack spilling
// There is at least one kind of analysis that cares about this distinction - async stack spilling
internal const RefKind StrictIn = RefKind.In + 1;
}
}
......@@ -79,7 +79,7 @@ public CSharpAddAccessibilityModifiersDiagnosticAnalyzer()
// This analyzer bases all of its decisions on the accessibility
var accessibility = generator.GetAccessibility(member);
// Omit will flag any accesibility values that exist and are default
// Omit will flag any accessibility values that exist and are default
// The other options will remove or ignore accessibility
var isOmit = option.Value == AccessibilityModifiersRequired.OmitIfDefault;
......
......@@ -19,7 +19,7 @@ public static class MatchPriority
/// The matching algorithm will tend to prefer this item unless
/// a dramatically better text-based match is available.
///
/// With no filter text, this item (or the first item alphabeitcally
/// With no filter text, this item (or the first item alphabetically
/// with this priority) should always be selected.
/// test
/// This is used for specific IDE scenarios like "Object creation preselection"
......
......@@ -107,13 +107,13 @@ protected void AnalyzeNode(SyntaxNodeAnalysisContext context)
{
// we have a predefined type syntax that is either in a member access context or a declaration context.
// check the appropriate option and determine if we should report a diagnostic.
var isMemberAcessOrCref = IsInMemberAccessOrCrefReferenceContext(predefinedTypeNode);
var isMemberAccessOrCref = IsInMemberAccessOrCrefReferenceContext(predefinedTypeNode);
var option = isMemberAcessOrCref ? GetOptionForMemberAccessContext : GetOptionForDeclarationContext;
var option = isMemberAccessOrCref ? GetOptionForMemberAccessContext : GetOptionForDeclarationContext;
var optionValue = optionSet.GetOption(option, language);
severity = optionValue.Notification.Severity;
properties = isMemberAcessOrCref ? MemberAccessEquivalenceKey : DeclarationsEquivalenceKey;
properties = isMemberAccessOrCref ? MemberAccessEquivalenceKey : DeclarationsEquivalenceKey;
return OptionSettingPrefersFrameworkType(optionValue, severity);
}
......
......@@ -18,7 +18,7 @@ namespace Microsoft.CodeAnalysis.EditAndContinue
/// Implements core of Edit and Continue orchestration: management of edit sessions and connecting EnC related services.
/// </summary>
/// <remarks>
/// Although the service itself is host agnotic, some of the services it consumes are only available in particular hosts (like Visual Studio).
/// Although the service itself is host agnostic, some of the services it consumes are only available in particular hosts (like Visual Studio).
/// Therefore this service doesn't export <see cref="IEditAndContinueService"/> on its own. Each host that supports EnC shall implement
/// a subclass that exports <see cref="IEditAndContinueService"/>.
/// </remarks>
......
......@@ -63,7 +63,7 @@ public Analysis(Document document, AsyncLazy<DocumentAnalysisResults> results)
// A document id is added whenever any analysis reports rude edits.
// We collect a set of document ids that contained a rude edit
// at some point in time during the lifespan of an edit session.
// At the end of the session we aks the diagnostic analyzer to reanalyze
// At the end of the session we ask the diagnostic analyzer to reanalyze
// the documents to clean up the diagnostics.
// An id may be present in this set even if the document doesn't have a rude edit anymore.
private readonly object _documentsWithReportedRudeEditsGuard = new object();
......
......@@ -71,12 +71,12 @@ class C
ChangeSignatureDialog.ClickDownButton();
ChangeSignatureDialog.ClickOK();
ChangeSignatureDialog.VerifyClosed();
var actuaText = VisualStudio.Editor.GetText();
var actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"
class C
{
public void Method(string b, int a) { }
}", actuaText);
}", actualText);
}
[WpfFact, Trait(Traits.Feature, Traits.Features.ChangeSignature)]
......@@ -105,7 +105,7 @@ void Test()
ChangeSignatureDialog.ClickRemoveButton();
ChangeSignatureDialog.ClickOK();
ChangeSignatureDialog.VerifyClosed();
var actuaText = VisualStudio.Editor.GetText();
var actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"
class C
{
......@@ -120,7 +120,7 @@ void Test()
{
Method(1);
}
}", actuaText);
}", actualText);
}
[WpfFact, Trait(Traits.Feature, Traits.Features.ChangeSignature)]
......@@ -158,20 +158,20 @@ End Sub
ChangeSignatureDialog.ClickUpButton();
ChangeSignatureDialog.ClickOK();
ChangeSignatureDialog.VerifyClosed();
var actuaText = VisualStudio.Editor.GetText();
Assert.Contains(@"vb.Method(y: ""hello"", x: 1);", actuaText);
var actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"vb.Method(y: ""hello"", x: 1);", actualText);
VisualStudio.SolutionExplorer.OpenFile(vbProject, "Class1.vb");
actuaText = VisualStudio.Editor.GetText();
Assert.Contains(@"Public Sub Method(y As String, x As Integer)", actuaText);
actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"Public Sub Method(y As String, x As Integer)", actualText);
VisualStudio.Editor.Undo();
actuaText = VisualStudio.Editor.GetText();
Assert.Contains(@"Public Sub Method(x As Integer, y As String)", actuaText);
actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"Public Sub Method(x As Integer, y As String)", actualText);
VisualStudio.SolutionExplorer.OpenFile(project, "Class1.cs");
actuaText = VisualStudio.Editor.GetText();
Assert.Contains(@"vb.Method(2, ""world"");", actuaText);
actualText = VisualStudio.Editor.GetText();
Assert.Contains(@"vb.Method(2, ""world"");", actualText);
}
}
}
......@@ -200,7 +200,7 @@ protected double ComputeDistance(TSequence oldSequence, int oldLength, TSequence
}
/// <summary>
/// Calculates a list of "V arrays" using Eugene W. Myers O(ND) Difference Algoritm
/// Calculates a list of "V arrays" using Eugene W. Myers O(ND) Difference Algorithm
/// </summary>
/// <remarks>
///
......
......@@ -174,7 +174,7 @@ public void WriteTo(AnalyzerReference reference, ObjectWriter writer, bool usePa
//
// analyzer assembly path to load analyzer acts like
// snapshot version for analyzer (since it is based on shadow copy)
// we can't send over bits and load analyer from memory (image) due to CLR not being able
// we can't send over bits and load analyzer from memory (image) due to CLR not being able
// to find satellite dlls for analyzers.
writer.WriteString(file.FullPath);
writer.WriteString(assemblyPath);
......
......@@ -150,7 +150,7 @@ private ImmutableArray<DiagnosticAnalyzer> GetAnalyzers(BidirectionalMap<string,
var referenceSet = pooledObject.Object;
var analyzerMap = pooledMap.Object;
// this follow what we do in HostAnalayzerManager.CheckAnalyzerReferenceIdentity
// this follow what we do in HostAnalyzerManager.CheckAnalyzerReferenceIdentity
foreach (var reference in hostAnalyzers.Concat(project.AnalyzerReferences))
{
if (!referenceSet.Add(reference.Id))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册