Beispiel #1
0
 internal BinaryExpression(PreprocessorExpression leftOperand, PreprocessorExpression rightOperand)
     : base(leftOperand.SourceLocation.SourceDocument.GetSourceLocation(leftOperand.SourceLocation.StartIndex, 
 rightOperand.SourceLocation.StartIndex + rightOperand.SourceLocation.Length - leftOperand.SourceLocation.StartIndex))
 {
     this.leftOperand = leftOperand;
       this.rightOperand = rightOperand;
 }
Beispiel #2
0
 internal OrExpression(PreprocessorExpression leftOperand, PreprocessorExpression rightOperand)
     : base(leftOperand, rightOperand)
 {
 }
Beispiel #3
0
 internal NotExpression(PreprocessorExpression operand, ISourceLocation sourceLocation)
     : base(sourceLocation)
 {
     this.operand = operand;
 }
Beispiel #4
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(PreprocessorExpression condition, ISourceLocation sourceLocation)
     : base(sourceLocation)
 {
     this.condition = condition;
 }
Beispiel #5
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(PreprocessorExpression condition, ISourceLocation sourceLocation)
     : base(sourceLocation)
 {
     this.condition = condition;
 }