예제 #1
0
 public static int Compare(IncludeExpression left, IncludeExpression right)
 {
     if (left.FileName.Length == right.FileName.Length)
     {
         return(StringComparer.InvariantCulture.Compare(left.FileName, right.FileName));
     }
     else
     {
         return(left.FileName.Length - right.FileName.Length);
     }
 }
예제 #2
0
 public static int Compare(IncludeExpression left, IncludeExpression right)
 {
     if (left.FileName.Length == right.FileName.Length)
     {
         return StringComparer.InvariantCulture.Compare(left.FileName, right.FileName);
     }
     else
     {
         return left.FileName.Length - right.FileName.Length;
     }
 }
예제 #3
0
 protected virtual Expression VisitIncludeStatementExpresson(IncludeExpression expression)
 {
     return expression;
 }
예제 #4
0
        protected override Expression VisitIncludeStatementExpresson(IncludeExpression expression)
        {
            this.Write("#import \"");
            this.Write(expression.FileName);
            this.WriteLine("\"");

            return expression;
        }