Beispiel #1
0
        public static List <ILocation> SourceLocation(SyntaxTree tree, SyntaxToken token)
        {
            var s = new SourceLocationWrapper(tree, token.Span);
            var l = (ILocation)s;

            return(new List <ILocation> {
                l
            });
        }
Beispiel #2
0
        public static List <ILocation> SourceLocation(SyntaxTree tree, CSharpSyntaxNode node)
        {
            var s = new SourceLocationWrapper(tree, node.Span);
            var l = (ILocation)s;

            return(new List <ILocation> {
                l
            });
        }
        public static List <ILocation> SourceLocation(CommonSyntaxTree tree, Microsoft.CodeAnalysis.CSharp.SyntaxToken token)
        {
            var s = new SourceLocationWrapper(tree, token.Span);
            var l = (ILocation)s;

            return(new List <ILocation> {
                l
            });
        }
 public static List<ILocation> SourceLocation(CommonSyntaxTree tree, Microsoft.CodeAnalysis.CSharp.SyntaxToken token) {
   var s = new SourceLocationWrapper(tree, token.Span);
   var l = (ILocation)s;
   return new List<ILocation> { l };
 }
 public static List<ILocation> SourceLocation(SyntaxTree tree, SyntaxToken token) {
   var s = new SourceLocationWrapper(tree, token.Span);
   var l = (ILocation)s;
   return new List<ILocation> { l };
 }
 public static List<ILocation> SourceLocation(SyntaxTree tree, CSharpSyntaxNode node) {
   var s = new SourceLocationWrapper(tree, node.Span);
   var l = (ILocation)s;
   return new List<ILocation> { l };
 }