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); } }
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; } }
protected virtual Expression VisitIncludeStatementExpresson(IncludeExpression expression) { return expression; }
protected override Expression VisitIncludeStatementExpresson(IncludeExpression expression) { this.Write("#import \""); this.Write(expression.FileName); this.WriteLine("\""); return expression; }