private static string GetNormalizedText(CssRuleBlock rule, int start, int length) { StringBuilder text = new StringBuilder(); foreach (ParseItem dec in rule.Children.Where( c => c is Declaration || c is Comment || c is LessMixinReferenceList || c is LessVariableDeclaration || c is ScssMixinReference || c is ScssVariableDeclaration)) { if (dec.Start > start + length) { break; } text.AppendLine(dec.Text); } return(text.ToString()); }
private static string GetNormalizedText(CssRuleBlock rule, int start, int length) { StringBuilder text = new StringBuilder(); foreach (ParseItem dec in rule.Children.Where( c => c is Declaration || c is Comment || c is LessMixinReferenceList || c is LessVariableDeclaration || c is ScssMixinReference || c is ScssVariableDeclaration)) { if (dec.Start > start + length) break; text.AppendLine(dec.Text); } return text.ToString(); }