ReadLocalVariables() static private method

static private ReadLocalVariables ( MethodEntry entry, ScopeDebugInformation scopes ) : void
entry Mono.CompilerServices.SymbolWriter.MethodEntry
scopes Mono.Cecil.Cil.ScopeDebugInformation
return void
Esempio n. 1
0
        public void Read(MethodSymbols symbols)
        {
            MethodEntry entry = this.symbol_file.GetMethodByToken(symbols.MethodToken.ToInt32());

            if (entry != null)
            {
                this.ReadLineNumbers(entry, symbols);
                MdbReader.ReadLocalVariables(entry, symbols);
            }
        }
Esempio n. 2
0
        public void Read(MethodBody body, InstructionMapper mapper)
        {
            MetadataToken method_token = body.Method.MetadataToken;
            MethodEntry   entry        = this.symbol_file.GetMethodByToken(method_token.ToInt32());

            if (entry != null)
            {
                Scope[] scopes = MdbReader.ReadScopes(entry, body, mapper);
                this.ReadLineNumbers(entry, mapper);
                MdbReader.ReadLocalVariables(entry, body, scopes);
            }
        }