Esempio n. 1
0
        private void CreateVariablesAndConstructorSyntax()
        {
            m_constructor = MySyntaxFactory.Constructor(m_scriptClassDeclaration);
            var variables = m_navigator.OfType <MyVisualSyntaxVariableNode>();

            foreach (var variableNode in variables)
            {
                m_fieldDeclarations.Add(variableNode.CreateFieldDeclaration());
                m_constructor = m_constructor.AddBodyStatements(variableNode.CreateInitializationSyntax());
            }
        }