Beispiel #1
0
        public static ISet <ITypeDefinition> Analyze(JsExpression expression)
        {
            var obj    = new TypeReferenceFinder();
            var result = new HashSet <ITypeDefinition>();

            obj.VisitExpression(expression, result);
            return(result);
        }
Beispiel #2
0
        public static ISet <ITypeDefinition> Analyze(IEnumerable <JsStatement> statements)
        {
            var obj    = new TypeReferenceFinder();
            var result = new HashSet <ITypeDefinition>();

            foreach (var s in statements)
            {
                obj.VisitStatement(s, result);
            }
            return(result);
        }