Browse Source

Provide both Enter and Leave events in ObservableAstVisitor.

newNRvisualizers
Daniel Grunwald 13 years ago
parent
commit
359fdd2382
  1. 9
      ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs
  2. 1292
      ICSharpCode.NRefactory.CSharp/Ast/ObservableAstVisitor.cs
  3. 1201
      ICSharpCode.NRefactory.CSharp/Ast/old_ObservableAstVisitor.cs
  4. 6
      ICSharpCode.NRefactory.CSharp/Formatter/GeneratedCodeSettings.cs
  5. 5
      ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj
  6. 2
      ICSharpCode.NRefactory.Xml/AXmlObject.cs

9
ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
//
//
// AstNode.cs
//
// Author:
@ -367,13 +367,6 @@ namespace ICSharpCode.NRefactory.CSharp @@ -367,13 +367,6 @@ namespace ICSharpCode.NRefactory.CSharp
}
}
public void InsertChildsBefore<T>(AstNode nextSibling, Role<T> role, params T[] child) where T : AstNode
{
foreach (var cur in child) {
InsertChildBefore(nextSibling, cur, role);
}
}
public void InsertChildBefore<T> (AstNode nextSibling, T child, Role<T> role) where T : AstNode
{
if (role == null)

1292
ICSharpCode.NRefactory.CSharp/Ast/ObservableAstVisitor.cs

File diff suppressed because it is too large Load Diff

1201
ICSharpCode.NRefactory.CSharp/Ast/old_ObservableAstVisitor.cs

File diff suppressed because it is too large Load Diff

6
ICSharpCode.NRefactory.CSharp/Formatter/GeneratedCodeSettings.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
//
//
// GeneratedCodeSettings.cs
//
// Author:
@ -177,7 +177,9 @@ namespace ICSharpCode.NRefactory.CSharp @@ -177,7 +177,9 @@ namespace ICSharpCode.NRefactory.CSharp
var cmt = new Comment ("", CommentType.SingleLine);
var cmt2 = new Comment (" " + label, CommentType.SingleLine);
var cmt3 = new Comment ("", CommentType.SingleLine);
mem.Parent.InsertChildsBefore (mem, Roles.Comment, cmt, cmt2, cmt3);
mem.Parent.InsertChildBefore (mem, cmt, Roles.Comment);
mem.Parent.InsertChildBefore (mem, cmt2, Roles.Comment);
mem.Parent.InsertChildBefore (mem, cmt3, Roles.Comment);
if (cmt.PrevSibling is EntityDeclaration)
mem.Parent.InsertChildBefore (cmt, new UnixNewLine (), Roles.NewLine);

5
ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj

@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE;FULL_AST;NET45</DefineConstants>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_4_5_Debug|AnyCPU' ">
<DebugType>full</DebugType>
@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE;FULL_AST;NET45</DefineConstants>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'net_4_5_Release|AnyCPU' ">
<DebugType>PdbOnly</DebugType>
@ -151,6 +151,7 @@ @@ -151,6 +151,7 @@
<Compile Include="Ast\Modifiers.cs" />
<Compile Include="Ast\NodeType.cs" />
<Compile Include="Ast\ObservableAstVisitor.cs" />
<Compile Include="Ast\old_ObservableAstVisitor.cs" />
<Compile Include="Ast\PrimitiveType.cs" />
<Compile Include="Ast\SimpleType.cs" />
<Compile Include="Ast\Statements\BlockStatement.cs" />

2
ICSharpCode.NRefactory.Xml/AXmlObject.cs

@ -111,7 +111,7 @@ namespace ICSharpCode.NRefactory.Xml @@ -111,7 +111,7 @@ namespace ICSharpCode.NRefactory.Xml
return child.GetChildAtOffset(offset);
}
}
return this; // No childs at offset
return this; // No children at offset
}
/// <summary>

Loading…
Cancel
Save