public virtual TResult VisitId([DisallowNull] DotIdSyntax id)
 {
     if (id == null)
     {
         throw new ArgumentNullException(nameof(id));
     }
     return(DefaultVisit(id));
 }
Beispiel #2
0
 public DotNodeIdSyntax([DisallowNull] DotIdSyntax id, [AllowNull] DotPortSyntax?port) : base(
         SyntaxKind.DotNodeId,
         id?.Start ?? 0,
         (id?.FullWidth ?? 0) + (port?.FullWidth ?? 0),
         new SyntaxNode?[] { id, port })
 {
     Id   = id ?? throw new ArgumentNullException(nameof(id));
     Port = port;
 }
Beispiel #3
0
 public DotAssignmentSyntax([DisallowNull] DotIdSyntax key,
                            [DisallowNull] PunctuationSyntax equalsSign,
                            [DisallowNull] DotIdSyntax value) : base(
         SyntaxKind.DotAssignment,
         key?.Start ?? 0,
         (key?.FullWidth ?? 0) + (equalsSign?.FullWidth ?? 0) + (value?.FullWidth ?? 0),
         new SyntaxNode?[] { key, equalsSign, value })
 {
     Key        = key ?? throw new ArgumentNullException(nameof(key));
     EqualsSign = equalsSign ?? throw new ArgumentNullException(nameof(equalsSign));
     Value      = value ?? throw new ArgumentNullException(nameof(value));
 }
Beispiel #4
0
 public DotPortSyntax([DisallowNull] PunctuationSyntax colon,
                      [DisallowNull] DotIdSyntax id,
                      [AllowNull] (PunctuationSyntax, DotIdSyntax)?colonAndCompassPt) : base(