public CSharpModifierToken(TextLocation location, Modifiers modifier) : base(location, null) { this.Modifier = modifier; }
/// <summary> /// Returns true, if the given coordinates are in the node. /// </summary> /// <returns> /// True, if location is between StartLocation and EndLocation (inclusive); otherwise, false. /// </returns> public bool IsInside(TextLocation location) { return(this.StartLocation <= location && location <= this.EndLocation); }
internal void SetStartLocation(TextLocation value) { ThrowIfFrozen(); this.startLocation = value; }
/// <summary> /// Returns true, if the given coordinates are in the node. /// </summary> /// <returns> /// True, if location is between StartLocation and EndLocation (exclusive); otherwise, false. /// </returns> public bool Contains(TextLocation location) { return(this.StartLocation <= location && location < this.EndLocation); }
public SimpleType(string identifier, TextLocation location) { SetChildByRole(Roles.Identifier, Syntax.Identifier.Create(identifier, location)); }