Example #1
0
 internal OrExpression(Expression leftOperand, Expression rightOperand)
   : base(leftOperand, rightOperand) {
 }
Example #2
0
 internal NotExpression(Expression operand, ISourceLocation sourceLocation) 
   : base(sourceLocation)
 {
   this.operand = operand;
 }
Example #3
0
 internal NotEqualsExpression(Expression leftOperand, Expression rightOperand)
   : base(leftOperand, rightOperand) {
 }
Example #4
0
 internal BinaryExpression(Expression leftOperand, Expression rightOperand) 
   : base(leftOperand.SourceLocation.SourceDocument.GetSourceLocation(leftOperand.SourceLocation.StartIndex, 
     rightOperand.SourceLocation.StartIndex + rightOperand.SourceLocation.Length - leftOperand.SourceLocation.StartIndex))
 {
   this.leftOperand = leftOperand;
   this.rightOperand = rightOperand;
 }
Example #5
0
 /// <summary>
 /// Allocates an object that models an #if-#elif-#else-#endif directive.
 /// </summary>
 /// <param name="condition">An expression that evaluates to either defined or undefined.</param>
 /// <param name="sourceLocation">The location in the source document where the #if-#elif-#else-#endif directive appears.</param>
 internal IfDirective(Expression condition, ISourceLocation sourceLocation) 
   : base (sourceLocation)
 {
   this.condition = condition;
 }
Example #6
0
 /// <summary>
 /// Allocates an object that models an #elif part of an #if-#elif-#else-#endif directive.
 /// </summary>
 /// <param name="condition">An expression that evaluates to either defined or undefined.</param>
 /// <param name="sourceLocation">The location in the source document where the #elif part appears.</param>
 internal ElifPart(Expression condition, ISourceLocation sourceLocation)
   : base(sourceLocation) 
 {
   this.condition = condition;
 }