Ejemplo n.º 1
0
            static FilePosition GetPosition(IProjectContent pc, string memberName)
            {
                // memberName is a special syntax used by our FxCop task:
                // className#memberName
                int pos = memberName.IndexOf('#');

                if (pos <= 0)
                {
                    return(FilePosition.Empty);
                }
                string className = memberName.Substring(0, pos);

                memberName = memberName.Substring(pos + 1);
                return(SuppressMessageCommand.GetPosition(pc, className, memberName));
            }
Ejemplo n.º 2
0
            static DomRegion GetPosition(ICompilation compilation, string memberName)
            {
                // memberName is a special syntax used by our FxCop task:
                // className#memberName
                int pos = memberName.IndexOf('#');

                if (pos <= 0)
                {
                    return(DomRegion.Empty);
                }
                string className = memberName.Substring(0, pos);

                memberName = memberName.Substring(pos + 1);
                return(SuppressMessageCommand.GetPosition(compilation, className, memberName));
            }