Esempio n. 1
0
 public CSharpModifierToken(TextLocation location, Modifiers modifier) : base(location, null)
 {
     this.Modifier = modifier;
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 internal void SetStartLocation(TextLocation value)
 {
     ThrowIfFrozen();
     this.startLocation = value;
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
 public SimpleType(string identifier, TextLocation location)
 {
     SetChildByRole(Roles.Identifier, Syntax.Identifier.Create(identifier, location));
 }