Exemple #1
0
        public virtual string GetDebugName(StructMethod method)
        {
            StructLocalVariableTableAttribute attr = method.GetLocalVariableAttr();

            if (attr != null && processor != null)
            {
                int?origIndex = processor.GetVarOriginalIndex(index);
                if (origIndex != null)
                {
                    string name = attr.GetName(origIndex.Value, visibleOffset);
                    if (name != null && TextUtil.IsValidIdentifier(name, method.GetClassStruct().GetBytecodeVersion
                                                                       ()))
                    {
                        return(name);
                    }
                }
            }
            return(null);
        }