Massive namespace reset due to mutual dependencies that shouldn't exist.

This commit is contained in:
Michael Smith 2016-03-11 18:40:19 -08:00
parent 1f41470dbb
commit 93912fde9e
51 changed files with 63 additions and 151 deletions

View File

@ -1,7 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;

View File

@ -1,7 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -2,7 +2,6 @@
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
namespace OSCADSharp.UnitTests
{

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,6 +1,5 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
namespace OSCADSharp.UnitTests
{

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Scripting;
namespace OSCADSharp.Bindings
namespace OSCADSharp
{
internal class BindableBoolean : IBindable
{

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Scripting;
namespace OSCADSharp.Bindings
namespace OSCADSharp
{
internal class BindableVector : Vector3, IBindable
{

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Bindings
namespace OSCADSharp
{
internal class Binding
{

View File

@ -1,12 +1,11 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Bindings
namespace OSCADSharp
{
internal class Bindings
{

View File

@ -1,5 +1,4 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Bindings
namespace OSCADSharp
{
internal interface IBindings
{

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Bindings.Solids
namespace OSCADSharp
{
internal class CubeBindings : ICloneable<CubeBindings>, IBindings
{

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Bindings.Solids
namespace OSCADSharp
{
internal class SphereBindings : ICloneable<SphereBindings>, IBindings
{

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Booleans
namespace OSCADSharp
{
/// <summary>
/// Subtracts the 2nd (and all further) child nodes from the first one (logical and not).

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Booleans
namespace OSCADSharp
{
/// <summary>
/// Creates the intersection of all child nodes

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Booleans
namespace OSCADSharp
{
/// <summary>
/// A union of child nodes. This is the sum of all children (logical or).

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Files
namespace OSCADSharp
{
internal class DefaultFileInvoker : IFileInvoker
{

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Files
namespace OSCADSharp
{
internal class DefaultFileWriter : IFileWriter
{

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Scripting
namespace OSCADSharp
{
internal class CompoundVariable : Variable
{

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Scripting
namespace OSCADSharp
{
/// <summary>

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Scripting
namespace OSCADSharp
{
/// <summary>
/// A class that creates blocks of curly-braced script with the

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Scripting
namespace OSCADSharp
{
/// <summary>
/// A statement with just one nested child node

View File

@ -1,12 +1,10 @@
using OSCADSharp.Bindings;
using OSCADSharp.Bindings.Solids;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Scripting.Solids
namespace OSCADSharp
{
internal class CubeScriptBuilder
{

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Scripting.Solids
namespace OSCADSharp
{
internal class SphereScriptBuilder
{

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Scripting
namespace OSCADSharp
{
/// <summary>
/// Extends the capabilities of StringBuilder with domain-specific behavior
@ -14,10 +13,10 @@ namespace OSCADSharp.Scripting
internal class StatementBuilder
{
private StringBuilder SB { get; set; } = new StringBuilder();
private Bindings.Bindings bindings = null;
private Bindings bindings = null;
private IBindings ibindings = null;
internal StatementBuilder(Bindings.Bindings bindings)
internal StatementBuilder(Bindings bindings)
{
this.bindings = bindings;
}

View File

@ -1,5 +1,4 @@
using OSCADSharp.Bindings;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Spatial
namespace OSCADSharp
{
/// <summary>
/// A Matrix for performing operations on doubles that

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object that has color and/or opacity applied to it
@ -73,7 +71,7 @@ namespace OSCADSharp.Transforms
return this.obj.Bounds();
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{"color", "color" },
{"opacity", "opacity" }
});

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// Creates an object that's the convex hull of child objects

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// Creates an object that's the minkowski sum of child objects

View File

@ -1,13 +1,10 @@
using OSCADSharp.Bindings;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object that's mirrored on a plane
@ -106,7 +103,7 @@ namespace OSCADSharp.Transforms
return new Bounds(newBottomLeft, newTopRight);
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{"normal", "normal"}
});
public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object that's been resized to a specified set of X/Y/Z dimensions
@ -87,7 +81,7 @@ namespace OSCADSharp.Transforms
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "size", "size" }
});
public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,10 @@
using OSCADSharp.Bindings;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object with rotation applied
@ -73,7 +70,7 @@ namespace OSCADSharp.Transforms
Matrix.GetRotatedPoint(oldBounds.TopRight, this.Angle.X, this.Angle.Y, this.Angle.Z));
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "angle", "angle" }
});
public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object that's been rescaled
@ -72,7 +66,7 @@ namespace OSCADSharp.Transforms
return new Bounds(oldBounds.BottomLeft * this.ScaleFactor, oldBounds.TopRight * this.ScaleFactor);
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "scalefactor", "scalefactor" }
});
public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms
namespace OSCADSharp
{
/// <summary>
/// An object or objects that have been moved along the specified vector
@ -78,7 +72,7 @@ namespace OSCADSharp.Transforms
return new Bounds(oldBounds.BottomLeft + this.Vector, oldBounds.TopRight + this.Vector);
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() {
private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "vector", "vector" }
});
public override void Bind(string property, Variable variable)

View File

@ -1,10 +1,4 @@
using OSCADSharp.Bindings;
using OSCADSharp.Booleans;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using OSCADSharp.Transforms;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

View File

@ -1,5 +1,4 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

View File

@ -1,5 +1,4 @@
using OSCADSharp.Files;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

View File

@ -1,6 +1,4 @@
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

View File

@ -3,11 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
using OSCADSharp.Scripting;
using OSCADSharp.Bindings.Solids;
using OSCADSharp.Scripting.Solids;
namespace OSCADSharp
{

View File

@ -3,9 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Scripting;
using OSCADSharp.Bindings;
namespace OSCADSharp
{
@ -261,7 +258,7 @@ namespace OSCADSharp
}
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>()
private Bindings bindings = new Bindings(new Dictionary<string, string>()
{
{"radius", "r" },
{"radius1", "r1" },

View File

@ -3,13 +3,8 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Scripting;
using System.Collections.Concurrent;
using System.Reflection;
using OSCADSharp.Bindings;
using OSCADSharp.Bindings.Solids;
using OSCADSharp.Scripting.Solids;
namespace OSCADSharp
{

View File

@ -1,11 +1,8 @@
using OSCADSharp.Scripting;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp
{
@ -170,7 +167,7 @@ namespace OSCADSharp
throw new NotSupportedException("Bounds are not supported for objects using Text3D");
}
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>()
private Bindings bindings = new Bindings(new Dictionary<string, string>()
{
{ "text", "text" },
{ "size", "size" },

View File

@ -1,5 +1,4 @@
using OSCADSharp.Spatial;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;