Exemplo n.º 1
0
 /// <summary>
 /// Accesses the given field span.
 /// </summary>
 /// <param name="fieldSpan">The field span.</param>
 /// <returns>The new field reference.</returns>
 public FieldRef Access(FieldSpan fieldSpan) =>
 IsDirect
     ? new FieldRef(Source, fieldSpan)
     : new FieldRef(Source, FieldSpan.Narrow(fieldSpan));
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a new direct reference to the given node.
 /// </summary>
 /// <param name="source">The main source.</param>
 /// <param name="fieldSpan">The field span.</param>
 public FieldRef(Value source, FieldSpan fieldSpan)
 {
     Source = source;
     span   = fieldSpan;
 }