public static IGraphElement CreateToken(this ElementBuilder elementBuilder, IStore store, SystemConstantNodeModel model) { var ui = new Token(); ui.Setup(model, store, elementBuilder.GraphView); return(ui); }
public static IEnumerable <SyntaxNode> BuildStaticConstantNode(this RoslynTranslator translator, SystemConstantNodeModel model, IPortModel portModel) { yield return(SyntaxFactory.QualifiedName( SyntaxFactory.IdentifierName(model.DeclaringType.Name(translator.Stencil)), SyntaxFactory.IdentifierName(model.Identifier))); }
public static GraphElement CreateToken(this INodeBuilder builder, Store store, SystemConstantNodeModel model) { GetTokenPorts(store, model, out var input, out var output); return(new Token(model, store, input, output, builder.GraphView)); }