Beispiel #1
0
            public CodeTypeDecl(CodeElement elm, string nsName, Document doc, string[] usings)
            {
                Element     = elm;
                name        = Element.Name;
                this.nsName = nsName;
                var point = elm.StartPoint.CreateEditPoint();

                rawCode     = point.GetText(elm.EndPoint);
                startLoc    = TextLocFromPoint(elm.StartPoint);
                endLoc      = TextLocFromPoint(elm.EndPoint);
                this.usings = usings;
            }
 public CodeTypeDecl (CodeElement elm, string nsName, Document doc, string[] usings)
 {
     Element = elm;
     name = Element.Name;
     this.nsName = nsName;
     var point = elm.StartPoint.CreateEditPoint ();
     rawCode = point.GetText (elm.EndPoint);
     startLoc = TextLocFromPoint (elm.StartPoint);
     endLoc = TextLocFromPoint (elm.EndPoint);
     this.usings = usings;
 }