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))); }
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))); }