Mono.CompilerServices.SymbolWriter.MonoSymbolFile.DefineCapturedVariable C# (CSharp) Method

DefineCapturedVariable() private method

private DefineCapturedVariable ( int scope_id, string name, string captured_name, CapturedVariable kind ) : void
scope_id int
name string
captured_name string
kind CapturedVariable
return void
        internal void DefineCapturedVariable(int scope_id, string name, string captured_name,
						      CapturedVariable.CapturedKind kind)
        {
            if (reader != null)
                throw new InvalidOperationException ();

            AnonymousScopeEntry scope = anonymous_scopes [scope_id];
            scope.AddCapturedVariable (name, captured_name, kind);
        }

Usage Example

Exemplo n.º 1
0
 public void DefineCapturedLocal(int scope_id, string name, string captured_name)
 {
     file.DefineCapturedVariable(scope_id, name, captured_name,
                                 CapturedVariable.CapturedKind.Local);
 }