Skip to content

Commit e3ead5d

Browse files
authored
Update XML documentation
1 parent f2713ed commit e3ead5d

File tree

80 files changed

+2645
-2271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2645
-2271
lines changed
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
/// <summary>
7-
/// This node is associated with the following kinds:
8-
/// <list type="bullet">
9-
/// <item>
10-
/// <see cref="GetAccessorSyntax"/>
11-
/// </item>
12-
/// <item>
13-
/// <see cref="SetAccessorSyntax"/>
14-
/// </item>
15-
/// <item>
16-
/// <see cref="AddOnAccessorSyntax"/>
17-
/// </item>
18-
/// <item>
19-
/// <see cref="RemoveOnAccessorSyntax"/>
20-
/// </item>
21-
/// </list>
22-
/// </summary>
23-
public class AccessorSyntax : SyntaxNode
24-
{
25-
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
26-
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
27-
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
28-
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
29-
30-
internal AccessorSyntax(
31-
ImmutableArray<SyntaxTrivia> leadingTrivia,
32-
ImmutableArray<SyntaxTrivia> trailingTrivia)
33-
{
34-
LeadingTrivia = leadingTrivia;
35-
TrailingTrivia = trailingTrivia;
36-
}
37-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
/// <summary>
7+
/// This node is associated with the following kinds:
8+
/// <list type="bullet">
9+
/// <item>
10+
/// <see cref="GetAccessorSyntax"/>
11+
/// </item>
12+
/// <item>
13+
/// <see cref="SetAccessorSyntax"/>
14+
/// </item>
15+
/// <item>
16+
/// <see cref="AddOnAccessorSyntax"/>
17+
/// </item>
18+
/// <item>
19+
/// <see cref="RemoveOnAccessorSyntax"/>
20+
/// </item>
21+
/// </list>
22+
/// </summary>
23+
public class AccessorSyntax : SyntaxNode
24+
{
25+
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
26+
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
27+
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
28+
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
29+
30+
internal AccessorSyntax(
31+
ImmutableArray<SyntaxTrivia> leadingTrivia,
32+
ImmutableArray<SyntaxTrivia> trailingTrivia)
33+
{
34+
LeadingTrivia = leadingTrivia;
35+
TrailingTrivia = trailingTrivia;
36+
}
37+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
/// <summary>
7-
/// Represents the IL <c>.addon</c> accessor, similar to C#'s event <c>add</c> accessor.
8-
/// </summary>
9-
public class AddOnAccessorSyntax : AccessorSyntax
10-
{
11-
/// <summary>
12-
/// Accessors in IL code typically reference to another method that contains actual
13-
/// implementation of the accessor. This property references a method that contains
14-
/// the implementation of the accessor.
15-
/// </summary>
16-
public MethodCallSyntax Target { get; init; }
17-
18-
internal AddOnAccessorSyntax(
19-
ImmutableArray<SyntaxTrivia> leadingTrivia,
20-
ImmutableArray<SyntaxTrivia> trailingTrivia,
21-
MethodCallSyntax target) : base(leadingTrivia, trailingTrivia)
22-
{
23-
Target = target;
24-
}
25-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
/// <summary>
7+
/// Represents the IL <c>.addon</c> accessor, similar to C#'s event <c>add</c> accessor.
8+
/// </summary>
9+
public class AddOnAccessorSyntax : AccessorSyntax
10+
{
11+
/// <summary>
12+
/// Accessors in IL code typically reference to another method that contains actual
13+
/// implementation of the accessor. This property references a method that contains
14+
/// the implementation of the accessor.
15+
/// </summary>
16+
public MethodCallSyntax Target { get; init; }
17+
18+
internal AddOnAccessorSyntax(
19+
ImmutableArray<SyntaxTrivia> leadingTrivia,
20+
ImmutableArray<SyntaxTrivia> trailingTrivia,
21+
MethodCallSyntax target) : base(leadingTrivia, trailingTrivia)
22+
{
23+
Target = target;
24+
}
25+
}
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
/// <summary>
7-
/// Represents an anonymous custom attribute in IL code. This is a type of
8-
/// custom attribute that does not contain any byte data. Example:
9-
/// <code>
10-
/// .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()
11-
///
12-
/// // There is no "= ( 01 00 00 00 )" after "::.ctor()", so this is an anonymous
13-
/// // custom attribute.
14-
/// </code>
15-
/// There is a different syntax node to represent custom attributes that contain
16-
/// byte data, which is <see cref="CustomAttributeSyntax"/>.
17-
/// </summary>
18-
public class AnonymousCustomAttributeSyntax : BaseCustomAttributeSyntax
19-
{
20-
/// <summary>
21-
/// Represents the invocation to the constructor. For example, in this
22-
/// custom attribute:
23-
/// <code>
24-
/// .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()
25-
/// </code>
26-
/// .. this property will hold a reference to <c>[System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()</c>,
27-
/// specifically the constructor method <c>.ctor()</c>, and the
28-
/// return type <c>instance void</c>.
29-
/// </summary>
30-
public MethodCallSyntax AttributeConstructorTarget { get; init; }
31-
32-
internal AnonymousCustomAttributeSyntax(
33-
ImmutableArray<SyntaxTrivia> leadingTrivia,
34-
ImmutableArray<SyntaxTrivia> trailingTrivia,
35-
MethodCallSyntax attributeConstructorTarget) : base(leadingTrivia, trailingTrivia)
36-
{
37-
AttributeConstructorTarget = attributeConstructorTarget;
38-
}
39-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
/// <summary>
7+
/// Represents an anonymous custom attribute in IL code. This is a type of
8+
/// custom attribute that does not contain any byte data. Example:
9+
/// <code>
10+
/// .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()
11+
///
12+
/// // There is no "= ( 01 00 00 00 )" after "::.ctor()", so this is an anonymous
13+
/// // custom attribute.
14+
/// </code>
15+
/// There is a different syntax node to represent custom attributes that contain
16+
/// byte data, which is <see cref="CustomAttributeSyntax"/>.
17+
/// </summary>
18+
public class AnonymousCustomAttributeSyntax : BaseCustomAttributeSyntax
19+
{
20+
/// <summary>
21+
/// Represents the invocation to the constructor. For example, in this
22+
/// custom attribute:
23+
/// <code>
24+
/// .custom instance void [System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()
25+
/// </code>
26+
/// .. this property will hold a reference to <c>[System.Runtime]System.Runtime.CompilerServices.NullableAttribute::.ctor()</c>,
27+
/// specifically the constructor method <c>.ctor()</c>, and the
28+
/// return type <c>instance void</c>.
29+
/// </summary>
30+
public MethodCallSyntax AttributeConstructorTarget { get; init; }
31+
32+
internal AnonymousCustomAttributeSyntax(
33+
ImmutableArray<SyntaxTrivia> leadingTrivia,
34+
ImmutableArray<SyntaxTrivia> trailingTrivia,
35+
MethodCallSyntax attributeConstructorTarget) : base(leadingTrivia, trailingTrivia)
36+
{
37+
AttributeConstructorTarget = attributeConstructorTarget;
38+
}
39+
}
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
/// <summary>
7-
/// This node is associated with the following nodes:
8-
/// <list type="bullet">
9-
/// <item><see cref="GenericArgumentsDefinitionSyntax"/></item>
10-
/// <item><see cref="GenericArgumentsReferenceSyntax"/></item>
11-
/// </list>
12-
/// </summary>
13-
public class ArgumentCollectionBaseSyntax : SyntaxNode
14-
{
15-
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
16-
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
17-
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
18-
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
19-
20-
/// <summary>
21-
/// A list of parameters passed to the argument collection.
22-
/// </summary>
23-
public IEnumerable<BaseGenericParameterSyntax> Parameters { get; init; }
24-
25-
internal ArgumentCollectionBaseSyntax(
26-
ImmutableArray<SyntaxTrivia> leadingTrivia,
27-
ImmutableArray<SyntaxTrivia> trailingTrivia,
28-
IEnumerable<BaseGenericParameterSyntax> parameters)
29-
{
30-
LeadingTrivia = leadingTrivia;
31-
TrailingTrivia = trailingTrivia;
32-
Parameters = parameters;
33-
}
34-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
/// <summary>
7+
/// This node is associated with the following nodes:
8+
/// <list type="bullet">
9+
/// <item><see cref="GenericArgumentsDefinitionSyntax"/></item>
10+
/// <item><see cref="GenericArgumentsReferenceSyntax"/></item>
11+
/// </list>
12+
/// </summary>
13+
public class ArgumentCollectionBaseSyntax : SyntaxNode
14+
{
15+
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
16+
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
17+
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
18+
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
19+
20+
/// <summary>
21+
/// A list of parameters passed to the argument collection.
22+
/// </summary>
23+
public IEnumerable<BaseGenericParameterSyntax> Parameters { get; init; }
24+
25+
internal ArgumentCollectionBaseSyntax(
26+
ImmutableArray<SyntaxTrivia> leadingTrivia,
27+
ImmutableArray<SyntaxTrivia> trailingTrivia,
28+
IEnumerable<BaseGenericParameterSyntax> parameters)
29+
{
30+
LeadingTrivia = leadingTrivia;
31+
TrailingTrivia = trailingTrivia;
32+
Parameters = parameters;
33+
}
34+
}
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
/// <summary>
7-
/// Represents a syntax node for argument list references. This is used in
8-
/// <see cref="MethodInvocationSyntax"/> to specify parameters passed to the
9-
/// method that's being invoked.
10-
/// </summary>
11-
public sealed class ArgumentListReferenceSyntax : SyntaxNode
12-
{
13-
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
14-
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
15-
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
16-
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
17-
18-
/// <summary>
19-
/// An enumerable of parameters passed to the method being invoked.
20-
/// </summary>
21-
public IEnumerable<TypeSyntax> Arguments { get; init; }
22-
23-
internal ArgumentListReferenceSyntax(
24-
ImmutableArray<SyntaxTrivia> leadingTrivia,
25-
ImmutableArray<SyntaxTrivia> trailingTrivia,
26-
IEnumerable<TypeSyntax> arguments)
27-
{
28-
LeadingTrivia = leadingTrivia;
29-
TrailingTrivia = trailingTrivia;
30-
Arguments = arguments;
31-
}
32-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
/// <summary>
7+
/// Represents a syntax node for argument list references. This is used in
8+
/// <see cref="MethodInvocationSyntax"/> to specify parameters passed to the
9+
/// method that's being invoked.
10+
/// </summary>
11+
public sealed class ArgumentListReferenceSyntax : SyntaxNode
12+
{
13+
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
14+
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
15+
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
16+
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
17+
18+
/// <summary>
19+
/// An enumerable of parameters passed to the method being invoked.
20+
/// </summary>
21+
public IEnumerable<TypeSyntax> Arguments { get; init; }
22+
23+
internal ArgumentListReferenceSyntax(
24+
ImmutableArray<SyntaxTrivia> leadingTrivia,
25+
ImmutableArray<SyntaxTrivia> trailingTrivia,
26+
IEnumerable<TypeSyntax> arguments)
27+
{
28+
LeadingTrivia = leadingTrivia;
29+
TrailingTrivia = trailingTrivia;
30+
Arguments = arguments;
31+
}
32+
}
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
using ILSourceParser.Trivia;
2-
using System.Collections.Immutable;
3-
4-
namespace ILSourceParser.Syntax;
5-
6-
public class AssemblyDeclarationSyntax : SyntaxNode
7-
{
8-
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
9-
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
10-
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
11-
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
12-
public string AssemblyName { get; init; }
13-
public bool IsExtern { get; init; }
14-
public IEnumerable<SyntaxNode> DescendantNodes { get; init; }
15-
16-
internal AssemblyDeclarationSyntax(
17-
ImmutableArray<SyntaxTrivia> leadingTrivia,
18-
ImmutableArray<SyntaxTrivia> trailingTrivia,
19-
string assemblyName,
20-
bool isExtern,
21-
IEnumerable<SyntaxNode> descendantNodes)
22-
{
23-
LeadingTrivia = leadingTrivia;
24-
TrailingTrivia = trailingTrivia;
25-
AssemblyName = assemblyName;
26-
IsExtern = isExtern;
27-
DescendantNodes = descendantNodes;
28-
}
29-
}
1+
using ILSourceParser.Trivia;
2+
using System.Collections.Immutable;
3+
4+
namespace ILSourceParser.Syntax;
5+
6+
public class AssemblyDeclarationSyntax : SyntaxNode
7+
{
8+
/// <inheritdoc cref="SyntaxNode.LeadingTrivia" />
9+
public override ImmutableArray<SyntaxTrivia> LeadingTrivia { get; init; }
10+
/// <inheritdoc cref="SyntaxNode.TrailingTrivia" />
11+
public override ImmutableArray<SyntaxTrivia> TrailingTrivia { get; init; }
12+
public string AssemblyName { get; init; }
13+
public bool IsExtern { get; init; }
14+
public IEnumerable<SyntaxNode> DescendantNodes { get; init; }
15+
16+
internal AssemblyDeclarationSyntax(
17+
ImmutableArray<SyntaxTrivia> leadingTrivia,
18+
ImmutableArray<SyntaxTrivia> trailingTrivia,
19+
string assemblyName,
20+
bool isExtern,
21+
IEnumerable<SyntaxNode> descendantNodes)
22+
{
23+
LeadingTrivia = leadingTrivia;
24+
TrailingTrivia = trailingTrivia;
25+
AssemblyName = assemblyName;
26+
IsExtern = isExtern;
27+
DescendantNodes = descendantNodes;
28+
}
29+
}

0 commit comments

Comments
 (0)