|
|
|
@ -526,6 +526,7 @@ namespace ICSharpCode.NRefactory.VB
@@ -526,6 +526,7 @@ namespace ICSharpCode.NRefactory.VB
|
|
|
|
|
} |
|
|
|
|
WriteHandlesClause(methodDeclaration.HandlesClause); |
|
|
|
|
WriteImplementsClause(methodDeclaration.ImplementsClause); |
|
|
|
|
if (!methodDeclaration.Body.IsNull) { |
|
|
|
|
NewLine(); |
|
|
|
|
Indent(); |
|
|
|
|
WriteBlock(methodDeclaration.Body); |
|
|
|
@ -535,6 +536,7 @@ namespace ICSharpCode.NRefactory.VB
@@ -535,6 +536,7 @@ namespace ICSharpCode.NRefactory.VB
|
|
|
|
|
WriteKeyword("Sub"); |
|
|
|
|
else |
|
|
|
|
WriteKeyword("Function"); |
|
|
|
|
} |
|
|
|
|
NewLine(); |
|
|
|
|
|
|
|
|
|
return EndNode(methodDeclaration); |
|
|
|
@ -1317,20 +1319,25 @@ namespace ICSharpCode.NRefactory.VB
@@ -1317,20 +1319,25 @@ namespace ICSharpCode.NRefactory.VB
|
|
|
|
|
WriteAttributes(propertyDeclaration.ReturnTypeAttributes); |
|
|
|
|
propertyDeclaration.ReturnType.AcceptVisitor(this, data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool needsBody = !propertyDeclaration.Getter.Body.IsNull || !propertyDeclaration.Setter.Body.IsNull; |
|
|
|
|
|
|
|
|
|
if (needsBody) { |
|
|
|
|
NewLine(); |
|
|
|
|
Indent(); |
|
|
|
|
|
|
|
|
|
if (!propertyDeclaration.Getter.IsNull) { |
|
|
|
|
if (!propertyDeclaration.Getter.Body.IsNull) { |
|
|
|
|
propertyDeclaration.Getter.AcceptVisitor(this, data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!propertyDeclaration.Setter.IsNull) { |
|
|
|
|
if (!propertyDeclaration.Setter.Body.IsNull) { |
|
|
|
|
propertyDeclaration.Setter.AcceptVisitor(this, data); |
|
|
|
|
} |
|
|
|
|
Unindent(); |
|
|
|
|
|
|
|
|
|
WriteKeyword("End"); |
|
|
|
|
WriteKeyword("Property"); |
|
|
|
|
} |
|
|
|
|
NewLine(); |
|
|
|
|
|
|
|
|
|
return EndNode(propertyDeclaration); |
|
|
|
|