@@ -214,4 +214,37 @@ public static void InheritedOverloads()
214214// ^^^^^^ reference scip-dotnet nuget . . Main/Methods#InheritedOverloads3#Method().
215215 }
216216
217+ public class LocalFunction
218+ // ^^^^^^^^^^^^^ definition scip-dotnet nuget . . Main/Methods#LocalFunction#
219+ // documentation ```cs\nclass LocalFunction\n```
220+ {
221+ public static void Method ( )
222+ // ^^^^^^ definition scip-dotnet nuget . . Main/Methods#LocalFunction#Method().
223+ // documentation ```cs\npublic static void LocalFunction.Method()\n```
224+ {
225+ var myWorld = GetWorld ( ) ;
226+ // ^^^^^^^ definition local 0
227+ // documentation ```cs\nstring? myWorld\n```
228+ // ^^^^^^^^ reference local 1
229+ SayHi ( myWorld ) ;
230+ // ^^^^^ reference local 2
231+ // ^^^^^^^ reference local 0
232+
233+ string GetWorld ( ) => "world" ;
234+ // ^^^^^^^^ definition local 1
235+ // documentation ```cs\nstring GetWorld()\n```
236+
237+ void SayHi ( string world )
238+ // ^^^^^ definition local 2
239+ // documentation ```cs\nvoid SayHi(string world)\n```
240+ // ^^^^^ definition local 3
241+ // documentation ```cs\nstring world\n```
242+ {
243+ Console . WriteLine ( $ "Hello { world } !") ;
244+ // ^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#
245+ // ^^^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#WriteLine(+11).
246+ // ^^^^^ reference local 3
247+ }
248+ }
249+ }
217250 }
0 commit comments