DefineLocalVariable() public method

public DefineLocalVariable ( int index, string name ) : void
index int
name string
return void
Exemplo n.º 1
0
 public void DefineLocalVariable(
     string name,
     FieldAttributes attributes,
     byte[] signature,
     SymAddressKind addrKind,
     int addr1,
     int addr2,
     int addr3,
     int startOffset,
     int endOffset)
 {
     msw.DefineLocalVariable(nextLocalIndex++, name);
 }
Exemplo n.º 2
0
		public void Close()
		{
			MonoSymbolWriter writer = new MonoSymbolWriter(moduleBuilder.FullyQualifiedName);

			foreach (Method method in methods.Values)
			{
				if (method.document != null)
				{
					if (method.document.source == null)
					{
						method.document.source = new SourceFileEntry(writer.SymbolFile, method.document.url);
					}
					ICompileUnit file = new CompileUnitEntry(writer.SymbolFile, method.document.source);
					SourceMethodBuilder smb = writer.OpenMethod(file, 0, method);
					for (int i = 0; i < method.offsets.Length; i++)
					{
						smb.MarkSequencePoint(method.offsets[i], method.document.source, method.lines[i], method.columns[i], false);
					}
					for (int i = 0; i < method.variables.Count; i++)
					{
						writer.DefineLocalVariable(i, method.variables[i]);
					}
					writer.CloseMethod();
				}
			}

			writer.WriteSymbolFile(moduleBuilder.ModuleVersionId);
		}
Exemplo n.º 3
0
 public void DefineLocalVariable2(string name, uint attributes, uint sigToken, uint addrKind, uint addr1, uint addr2, uint addr3, uint startOffset, uint endOffset)
 {
     // msw.DefineLocalVariable (nextLocalIndex++, name);
     msw.DefineLocalVariable((int)addr1, name);
 }