コード例 #1
0
ファイル: Instance.cs プロジェクト: zihotki/Excess
        private static void BarOutput(InstanceConnector output, InstanceConnection <SyntaxNode> connection, Scope scope)
        {
            Assert.IsNotNull(connection.OutputNode);
            Assert.IsNotNull(connection.InputNode);
            Assert.IsInstanceOfType(connection.InputNode, typeof(ExpressionSyntax));
            Assert.IsInstanceOfType(connection.OutputNode, typeof(ExpressionSyntax));

            scope.AddInstanceInitializer(FooInputInit.Get(
                                             connection.Source,
                                             CSharp.ParseExpression('"' + connection.Input.Id + '"'),
                                             CSharp.BinaryExpression(SyntaxKind.EqualsExpression,
                                                                     (ExpressionSyntax)connection.InputNode,
                                                                     (ExpressionSyntax)connection.OutputNode)));
        }
コード例 #2
0
ファイル: Instance.cs プロジェクト: mpmedia/Excess
        private static void BarOutput(InstanceConnector output, InstanceConnection<SyntaxNode> connection, Scope scope)
        {
            Assert.IsNotNull(connection.OutputNode);
            Assert.IsNotNull(connection.InputNode);
            Assert.IsInstanceOfType(connection.InputNode, typeof(ExpressionSyntax));
            Assert.IsInstanceOfType(connection.OutputNode, typeof(ExpressionSyntax));

            scope.AddInstanceInitializer(FooInputInit.Get(
                connection.Source,
                CSharp.ParseExpression('"' + connection.Input.Id + '"'),
                CSharp.BinaryExpression(SyntaxKind.EqualsExpression,
                    (ExpressionSyntax)connection.InputNode,
                    (ExpressionSyntax)connection.OutputNode)));
        }