Skip to content

Commit

Permalink
Cleanup test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathleen Dollard committed Oct 10, 2014
1 parent b64f29e commit 8563f1f
Show file tree
Hide file tree
Showing 88 changed files with 7 additions and 6,357 deletions.
5 changes: 4 additions & 1 deletion .gitignore
@@ -1,7 +1,10 @@

# RoslynDom
*.actual
*_Updated_Files/
Walkthrough2_Updated_Files*/
Walkthrough2_Updated_Files_A*/
Walkthrough2_Updated_Files_B*/


packages/
nuget_packages/
Expand Down
1 change: 0 additions & 1 deletion RoslynDom/Implementations/RDomProperty.cs
Expand Up @@ -14,7 +14,6 @@ public class RDomProperty : RDomBase<IProperty, IPropertySymbol>, IProperty
// The RDomList is used for accessor to reuse the forced parenting in that class
private RDomCollection<IAccessor> _accessors;


public RDomProperty(SyntaxNode rawItem, IDom parent, SemanticModel model)
: base(rawItem, parent, model)
{ Initialize(); }
Expand Down
2 changes: 0 additions & 2 deletions RoslynDom/RoslynUtilities.cs.actual
@@ -1,6 +1,4 @@
using System;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Formatting;
using RoslynDom.Common;

namespace RoslynDom
Expand Down
4 changes: 2 additions & 2 deletions RoslynDomCSharpFactories/UpdateNotifyPropertyChanged.cs
Expand Up @@ -16,7 +16,7 @@ public static bool ShouldNotifyPropertyChanged(IProperty prop)
return prop.CanGet && prop.CanSet;
}


public static bool NeedsNotifyPropertyChanged(IProperty prop)
{
if (prop.GetAccessor.Statements.Count() != 1) return true;
Expand All @@ -35,7 +35,7 @@ public static bool FixNotifyPropertyChanged(IProperty prop)
// Add the field without further checks because the programmer will find and resolve
// things like naming collisions
var parent = prop.Parent as ITypeMemberContainer;
var fieldName = StringUtilities.CamelCase(prop.Name);
var fieldName = (prop.Name.StartsWith("_") ? "" : "_") + StringUtilities.CamelCase(prop.Name);
var field = new RDomField(fieldName, prop.ReturnType, declaredAccessModifier: AccessModifier.Private);
FixWhitespace(field, prop);
field.Whitespace2Set.Add(new Whitespace2(prop.Whitespace2Set.First().Copy()));
Expand Down
2 changes: 1 addition & 1 deletion RoslynDomExampleTests/CheckAndFixSpike.cs
Expand Up @@ -123,7 +123,7 @@ private static IConstructor CreateAlternateConstructor(RDomConstructor construct

private RDomParameter CreateParameter(List<IAssignmentStatement> assignments, List<Tuple<RDomParameter, RDomParameter, RDomArgument>> altConstructorPairs, IProperty prop)
{
var paramName = (prop.Name.StartsWith("_") ? "" : "_") + StringUtilities.CamelCase(prop.Name);
var paramName = StringUtilities.CamelCase(prop.Name);
var type = prop.PropertyType.Copy();
var param = new RDomParameter(paramName, type);
triviaManager.StoreStringWhitespace(param, LanguageElement.Identifier, " ", "");
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 8563f1f

Please sign in to comment.