Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Acutal -> Actual

* addtional -> additional

* agressive -> aggressive

* agument -> argument

* Alignement -> Alignment

* alredy -> already

* MAnaged -> Managed

* analagous -> analogous

* aquire -> acquire

* arbitary -> arbitrary


Commit migrated from dotnet/coreclr@22bfefb
  • Loading branch information
github-john-doe authored and jkotas committed Jun 18, 2018
1 parent 3bdbb92 commit bdd9562
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

//
//

using System;
using System.Diagnostics.SymbolStore;
Expand Down Expand Up @@ -991,7 +991,7 @@ public virtual void EndExceptionBlock()
this.Emit(OpCodes.Endfinally);
}

//Check if we've alredy set this label.
//Check if we've already set this label.
//The only reason why we might have set this is if we have a finally block.
if (m_labelList[endLabel.GetLabelValue()] == -1)
{
Expand Down Expand Up @@ -1092,7 +1092,7 @@ public virtual void BeginFinallyBlock()
Label finallyEndLabel = this.DefineLabel();
current.SetFinallyEndLabel(finallyEndLabel);

// generate leave for try clause
// generate leave for try clause
this.Emit(OpCodes.Leave, finallyEndLabel);
if (catchEndAddr == 0)
catchEndAddr = m_length;
Expand Down Expand Up @@ -1576,7 +1576,7 @@ internal Label GetFinallyEndLabel()
// WARNING: This is not a generic function to determine the innerness
// of an exception. This is somewhat of a mis-nomer. This gives a
// random result for cases where the two exceptions being compared do
// not having a nesting relation.
// not having a nesting relation.
internal bool IsInner(__ExceptionInfo exc)
{
Debug.Assert(exc != null);
Expand Down Expand Up @@ -1824,7 +1824,7 @@ private int FindDocument(ISymbolDocumentWriter document)
}
}

// cannot find an existing document so add one to the array
// cannot find an existing document so add one to the array
EnsureCapacity();
m_iLastFound = m_DocumentCount;
m_Documents[m_iLastFound] = new REDocument(document);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.


//
//

namespace System.Reflection.Emit
{
Expand Down Expand Up @@ -74,11 +74,11 @@ public static MethodInfo GetMethod(Type type, MethodInfo method)
if (!(type is TypeBuilder) && !(type is TypeBuilderInstantiation))
throw new ArgumentException(SR.Argument_MustBeTypeBuilder);

// The following checks establishes invariants that more simply put require type to be generic and
// The following checks establishes invariants that more simply put require type to be generic and
// method to be a generic method definition declared on the generic type definition of type.
// To create generic method G<Foo>.M<Bar> these invariants require that G<Foo>.M<S> be created by calling
// To create generic method G<Foo>.M<Bar> these invariants require that G<Foo>.M<S> be created by calling
// this function followed by MakeGenericMethod on the resulting MethodInfo to finally get G<Foo>.M<Bar>.
// We could also allow G<T>.M<Bar> to be created before G<Foo>.M<Bar> (BindGenParm followed by this method)
// We could also allow G<T>.M<Bar> to be created before G<Foo>.M<Bar> (BindGenParm followed by this method)
// if we wanted to but that just complicates things so these checks are designed to prevent that scenario.

if (method.IsGenericMethod && !method.IsGenericMethodDefinition)
Expand All @@ -91,7 +91,7 @@ public static MethodInfo GetMethod(Type type, MethodInfo method)
throw new ArgumentException(SR.Argument_InvalidMethodDeclaringType, nameof(type));

// The following converts from Type or TypeBuilder of G<T> to TypeBuilderInstantiation G<T>. These types
// both logically represent the same thing. The runtime displays a similar convention by having
// both logically represent the same thing. The runtime displays a similar convention by having
// G<M>.M() be encoded by a typeSpec whose parent is the typeDef for G<M> and whose instantiation is also G<M>.
if (type.IsGenericTypeDefinition)
type = type.MakeGenericType(type.GetGenericArguments());
Expand Down Expand Up @@ -263,11 +263,11 @@ internal static bool IsTypeEqual(Type t1, Type t2)
runtimeType2 = t2;
}

// If the type builder view is eqaul then it is equal
// If the type builder view is eqaul then it is equal
if (tb1 != null && tb2 != null && Object.ReferenceEquals(tb1, tb2))
return true;

// if the runtimetype view is eqaul than it is equal
// if the runtimetype view is eqaul than it is equal
if (runtimeType1 != null && runtimeType2 != null && runtimeType1 == runtimeType2)
return true;

Expand Down Expand Up @@ -1016,7 +1016,7 @@ public override bool IsAssignableFrom(Type c)
return m_bakedRuntimeType.IsAssignableFrom(fromRuntimeType);
}

// So if c is not a runtimeType nor TypeBuilder. We don't know how to deal with it.
// So if c is not a runtimeType nor TypeBuilder. We don't know how to deal with it.
// return false then.
if (fromTypeBuilder == null)
return false;
Expand Down Expand Up @@ -1926,7 +1926,7 @@ private TypeInfo CreateTypeNoLock()


if (meth.IsGenericMethodDefinition)
meth.GetToken(); // Doubles as "CreateMethod" for MethodBuilder -- analagous to CreateType()
meth.GetToken(); // Doubles as "CreateMethod" for MethodBuilder -- analogous to CreateType()

methodAttrs = meth.Attributes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace System.Reflection
internal unsafe sealed class RtFieldInfo : RuntimeFieldInfo, IRuntimeFieldInfo
{
#region Private Data Members
// agressive caching
// aggressive caching
private IntPtr m_fieldHandle;
private FieldAttributes m_fieldAttributes;
// lazy caching
Expand Down Expand Up @@ -43,7 +43,7 @@ internal INVOCATION_FLAGS InvocationFlags
}

// If the invocationFlags are still 0, then
// this should be an usable field, determine the other flags
// this should be an usable field, determine the other flags
if (invocationFlags == 0)
{
if ((m_fieldAttributes & FieldAttributes.InitOnly) != (FieldAttributes)0)
Expand Down Expand Up @@ -159,8 +159,8 @@ internal void InternalSetValue(Object obj, Object value, BindingFlags invokeAttr
// UnsafeSetValue doesn't perform any consistency or visibility check.
// It is the caller's responsibility to ensure the operation is safe.
// When the caller needs to perform visibility checks they should call
// InternalSetValue() instead. When the caller needs to perform
// consistency checks they should call CheckConsistency() before
// InternalSetValue() instead. When the caller needs to perform
// consistency checks they should call CheckConsistency() before
// calling this method.
[DebuggerStepThroughAttribute]
[Diagnostics.DebuggerHidden]
Expand Down Expand Up @@ -209,8 +209,8 @@ internal Object InternalGetValue(Object obj, ref StackCrawlMark stackMark)
// UnsafeGetValue doesn't perform any consistency or visibility check.
// It is the caller's responsibility to ensure the operation is safe.
// When the caller needs to perform visibility checks they should call
// InternalGetValue() instead. When the caller needs to perform
// consistency checks they should call CheckConsistency() before
// InternalGetValue() instead. When the caller needs to perform
// consistency checks they should call CheckConsistency() before
// calling this method.
[DebuggerStepThroughAttribute]
[Diagnostics.DebuggerHidden]
Expand Down Expand Up @@ -268,7 +268,7 @@ internal override RuntimeModule GetRuntimeModule()

#endregion

#region FieldInfo Overrides
#region FieldInfo Overrides
public override Object GetValue(Object obj)
{
StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ IEnumerator IEnumerable.GetEnumerator()
}

//
// IList & ICollection methods.
// IList & ICollection methods.
// This enables two-way data binding and index access in Jupiter
//
Object IList.this[int index]
Expand Down Expand Up @@ -393,7 +393,7 @@ internal static Object CreateIReferenceArray(Array obj)
}
else
{
// All WinRT reference type (including arbitary managed type) will be PropertyType.ObjectArray
// All WinRT reference type (including arbitrary managed type) will be PropertyType.ObjectArray
return new CLRIReferenceArrayImpl<Object>(PropertyType.InspectableArray, (Object[])obj);
}
}
Expand Down
Loading

0 comments on commit bdd9562

Please sign in to comment.