Exemplo n.º 1
0
 public virtual TResult VisitNodeId([DisallowNull] DotNodeIdSyntax nodeId)
 {
     if (nodeId == null)
     {
         throw new ArgumentNullException(nameof(nodeId));
     }
     return(DefaultVisit(nodeId));
 }
Exemplo n.º 2
0
 public DotNodeStatementSyntax([DisallowNull] DotNodeIdSyntax nodeId,
                               [AllowNull] DotAttributeListSyntax?attributeList) : base(
         SyntaxKind.DotNodeStatement,
         nodeId?.Start ?? 0,
         (nodeId?.FullWidth ?? 0) + (attributeList?.FullWidth ?? 0),
         new DotSyntax?[] { nodeId, attributeList })
 {
     NodeId        = nodeId ?? throw new ArgumentNullException(nameof(nodeId));
     AttributeList = attributeList;
 }