Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6afc9e6

Browse files
committed
Add GetPrecedence reference
1 parent49c85b4 commit6afc9e6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/runtime/methodbinder.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,12 @@ internal MethodBase[] GetMethods()
167167
}
168168

169169
/// <summary>
170-
/// Precedence algorithm largely lifted fromjython - the concerns are
171-
/// generally the same so we'll startw/this and tweak as necessary.
170+
/// Precedence algorithm largely lifted fromJython - the concerns are
171+
/// generally the same so we'll startwiththis and tweak as necessary.
172172
/// </summary>
173173
/// <remarks>
174-
/// TODO: Add link to specific Jython Section/Code/File
174+
/// Based from Jython `org.python.core.ReflectedArgs.precedence`
175+
/// See: https://github.com/jythontools/jython/blob/master/src/org/python/core/ReflectedArgs.java#L192
175176
/// </remarks>
176177
internalstaticintGetPrecedence(MethodBasemi)
177178
{
@@ -328,7 +329,7 @@ internal Binding Bind(IntPtr inst, IntPtr args, IntPtr kw, MethodBase info, Meth
328329
elseif(pynargs>clrnargs&&clrnargs>0&&
329330
Attribute.IsDefined(pi[clrnargs-1],typeof(ParamArrayAttribute)))
330331
{
331-
// This is aspam(params object[]egg) style method
332+
// This is a`foo(params object[]bar)` style method
332333
match=true;
333334
arrayStart=clrnargs-1;
334335
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp