/********* ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="name">The Content Patcher token name.</param> /// <param name="inputArg">The input argument passed to the Content Patcher token.</param> /// <param name="impliedBraces">Whether the token omits the start/end character patterns because it's in a token-only context.</param> public LexTokenToken(string name, LexTokenInputArg?inputArg, bool impliedBraces) { this.Type = LexTokenType.Token; this.Text = LexTokenToken.GetRawText(name, inputArg, impliedBraces); this.Name = name; this.InputArg = inputArg; this.ImpliedBraces = impliedBraces; }
/// <summary>Get a text representation of the lexical token.</summary> public override string ToString() { return(LexTokenToken.GetRawText(this.Name, this.InputArgs, this.ImpliedBraces)); }