예제 #1
0
 public StdSimpleCallNode(Loyc.Syntax.Lexing.Token targetToken, RVList <LNode> args, SourceRange range, NodeStyle style = NodeStyle.Default)
     : base(args, range, style)
 {
     _name       = (Symbol)(targetToken.Value ?? GSymbol.Empty);
     _targetOffs = ClipUShort(targetToken.StartIndex - RAS.StartIndex);
     _targetLen  = ClipUShort(targetToken.Length);
 }
예제 #2
0
 public StdSimpleCallNodeWithAttrs(RVList <LNode> attrs, Loyc.Syntax.Lexing.Token targetToken, RVList <LNode> args, SourceRange range, NodeStyle style = NodeStyle.Default)
     : base(targetToken, args, range, style)
 {
     _attrs = attrs; NoNulls(attrs, "Attrs");
 }