Browse Source

* Src/Visitors/LookupTableVisitor.cs: Catch variable declarations

are now valid in the whole catch clause, not only in the statement
  block. (Required for the lookup inside the variable declaration)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4520 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Mike Krüger 16 years ago
parent
commit
a4a77737bd
  1. 2
      src/Libraries/NRefactory/Project/Src/Visitors/LookupTableVisitor.cs

2
src/Libraries/NRefactory/Project/Src/Visitors/LookupTableVisitor.cs

@ -296,7 +296,7 @@ namespace ICSharpCode.NRefactory.Visitors @@ -296,7 +296,7 @@ namespace ICSharpCode.NRefactory.Visitors
if (catchClause.TypeReference != null && catchClause.VariableName != null) {
AddVariable(catchClause.TypeReference,
catchClause.VariableName,
catchClause.StatementBlock.StartLocation,
catchClause.StartLocation,
catchClause.StatementBlock.EndLocation,
false, false, null, null, false);
}

Loading…
Cancel
Save