-
-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Description
Currently code gen omits parameter attributes, this means i.e. the GetCallerInfo generates wrong results when called without a context.
This source code
cake/src/Cake.Common/Diagnostics/ScriptCallerAliases.cs
Lines 23 to 28 in 730bf9b
| public static ScriptCallerInfo GetCallerInfo( | |
| this ICakeContext context, | |
| [CallerMemberName] string memberName = "", | |
| [CallerFilePath] string sourceFilePath = "", | |
| [CallerLineNumber] int sourceLineNumber = 0) | |
| { |
becomes
ScriptCallerInfo GetCallerInfo(
string memberName = "",
string sourceFilePath = "",
int sourceLineNumber = 0)Reference code:
ubbeK