コード例 #1
0
ファイル: Function.cs プロジェクト: lisiynos/pascalabcnet
		IEnumerable<LocalVariable> GetLocalVariablesInScope(ISymUnmanagedScope symScope)
		{
			foreach (ISymUnmanagedVariable symVar in symScope.Locals) {
				yield return GetLocalVariable(symVar);
			}
			foreach(ISymUnmanagedScope childScope in symScope.Children) {
				foreach(LocalVariable var in GetLocalVariablesInScope(childScope)) {
					yield return var;
				}
			}
		}
コード例 #2
0
 public ISymUnmanagedScope GetScopeFromOffset(uint offset)
 {
     return(ISymUnmanagedScope.Wrap(this.WrappedObject.GetScopeFromOffset(offset)));
 }
コード例 #3
0
        public override bool Equals(object o)
        {
            ISymUnmanagedScope casted = o as ISymUnmanagedScope;

            return((casted != null) && (casted.WrappedObject == wrappedObject));
        }
コード例 #4
0
		List<ISymUnmanagedVariable> GetLocalVariablesInScope(ISymUnmanagedScope symScope)
		{
			List<ISymUnmanagedVariable> vars = new List<ISymUnmanagedVariable>();
			foreach (ISymUnmanagedVariable symVar in symScope.Locals) {
				if (!symVar.Name.StartsWith("CS$")) { // TODO: Generalize
					vars.Add(symVar);
				}
			}
			foreach(ISymUnmanagedScope childScope in symScope.Children) {
				vars.AddRange(GetLocalVariablesInScope(childScope));
			}
			return vars;
		}