Пример #1
0
 private IConstructEnumerable <IFieldDeclaration> FindFields(FileModel fileModel, CodeSpan selection)
 {
     return(from declaration in fileModel.InnerMost <IClassDeclaration>(selection).ContainedDeclarations
            where declaration.Is <IFieldDeclaration>() &&
            declaration.ExistsTextuallyInFile &&
            !declaration.As <IFieldDeclaration>().IsReadOnly() &&
            declaration.CodeSpan.Intersects(selection)
            select declaration.As <IFieldDeclaration>());
 }
 private IConstructEnumerable<IFieldDeclaration> FindFields(FileModel fileModel, CodeSpan selection)
 {
     return from declaration in fileModel.InnerMost<IClassDeclaration>(selection).ContainedDeclarations
            where declaration.Is<IFieldDeclaration>() &&
            declaration.ExistsTextuallyInFile &&
            !declaration.As<IFieldDeclaration>().IsReadOnly() &&
            declaration.CodeSpan.Intersects(selection)
            select declaration.As<IFieldDeclaration>();
 }