Ejemplo n.º 1
0
        /// <summary>
        /// Merges another compilation model into this one.
        /// </summary>
        /// <param name="model">The model to merge from.</param>
        public void Merge(CompilationModel model)
        {
            foreach (var item in model.Enums)
                Enums.Add(item);

            foreach (var item in model.Classes)
                Classes.Add(item);

            foreach (var item in model.GlobalStatements)
                GlobalStatements.Add(item);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Merges another compilation model into this one.
        /// </summary>
        /// <param name="model">The model to merge from.</param>
        public void Merge(CompilationModel model)
        {
            foreach (var item in model.Enums)
            {
                Enums.Add(item);
            }

            foreach (var item in model.Classes)
            {
                Classes.Add(item);
            }

            foreach (var item in model.GlobalStatements)
            {
                GlobalStatements.Add(item);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Merges another compilation model into this one.
        /// </summary>
        /// <param name="model">The model to merge from.</param>
        public void Merge(CompilationModel model)
        {
            foreach (var item in model.Enums)
            {
                Enums.Add(item);
            }

            foreach (var item in model.Classes)
            {
                Classes.Add(item);
            }
        }