Esempio n. 1
0
        public void VisitNode(JSTypeOfExpression toe)
        {
            var ct = GetCachedTypeOf(toe.Type);

            if (ct != null) {
                ParentNode.ReplaceChild(toe, ct);
                VisitReplacement(ct);
            } else {
                VisitChildren(toe);
            }
        }
Esempio n. 2
0
        public void VisitNode(JSTypeOfExpression toe)
        {
            var ct = GetCachedTypeOf(toe.Type);

            if (ct != null)
            {
                ParentNode.ReplaceChild(toe, ct);
                VisitReplacement(ct);
            }
            else
            {
                VisitChildren(toe);
            }
        }
Esempio n. 3
0
        public void VisitNode(JSTypeOfExpression toe)
        {
            Output.Identifier(
                toe.Type, ReferenceContext, IncludeTypeParens.Peek()
                );

            if (toe.Type is GenericParameter)
            {
                // Generic parameters are type objects, not public interfaces
            }
            else
            {
                Output.Dot();
                Output.Identifier("__Type__");
            }
        }
Esempio n. 4
0
 public void VisitNode(JSTypeOfExpression toe)
 {
     // TODO: Cache these types too.
     VisitChildren(toe);
 }
Esempio n. 5
0
 public void VisitNode(JSTypeOfExpression toe)
 {
     // TODO: Cache these types too.
     VisitChildren(toe);
 }