public override void Visit(Type type)
        {
            // Add type name
            Builder.AppendLine(
                $"// type_{type.Definition.FullName}<{String.Join(",", type.Definition.GenericParameters.Select(e => e.DeclaringType.FullName))}>");

            base.Visit(type);

            Builder.AppendLine();
        }
        public override void Visit(Type type)
        {
            if (_visitor.InitilizationPoints.ContainsKey(type.Definition))
            {
                // Get initilization points
                type.SetInitilizationPoints(_visitor.InitilizationPoints[type.Definition]);
            }

            // Also visit subtypes
            base.Visit(type);
        }
示例#3
0
        public override void Visit(Type type)
        {
            if (type.Definition.Interfaces.Any(implementedInterface =>
                                               implementedInterface.InterfaceType.FullName == "System.Runtime.CompilerServices.IAsyncStateMachine"))
            {
                // Find all initilization points
                type.IsGeneratedTaskType = true;
            }

            base.Visit(type);
        }