Example #1
0
        public LocationInfo ResolveLocation(object location)
        {
            Node             node = (Node)location;
            MemberExpression me   = node as MemberExpression;
            SourceSpan       span;

            if (me != null)
            {
                span = me.GetNameSpan(Tree);
            }
            else
            {
                span = node.GetSpan(Tree);
            }

            return(new LocationInfo(ProjectEntry.FilePath, Entry.DocumentUri, span.Start.Line, span.Start.Column, span.End.Line, span.End.Column));
        }
Example #2
0
 public override bool Walk(MemberExpression node)
 {
     if (UpdateLineInfo(node, true))
     {
         // make sure we get the name marked as well if we have a multiline
         // name expression...
         var nameSpan = node.GetNameSpan(_ast);
         MarkCoverage(
             true,
             nameSpan.Start,
             nameSpan.End,
             IsCovered(node.GetStart(_ast).Line)
             );
         return(true);
     }
     return(false);
 }