You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.7 KiB
58 lines
1.7 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.ComponentModel; |
|
using ICSharpCode.NRefactory.TypeSystem; |
|
using ICSharpCode.SharpDevelop.Parser; |
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
namespace ICSharpCode.SharpDevelop.Dom |
|
{ |
|
/// <summary> |
|
/// An NRefactory entity as a model. |
|
/// </summary> |
|
public interface IEntityModel : ISymbolModel |
|
{ |
|
/// <summary> |
|
/// Gets/sets the accessibility of the entity. |
|
/// </summary> |
|
Accessibility Accessibility { get; } |
|
|
|
/// <summary> |
|
/// Gets whether this entity is static. |
|
/// Returns true if either the 'static' or the 'const' modifier is set. |
|
/// </summary> |
|
bool IsStatic { get; } |
|
|
|
/// <summary> |
|
/// Returns whether this entity is abstract. |
|
/// </summary> |
|
/// <remarks>Static classes also count as abstract classes.</remarks> |
|
bool IsAbstract { get; } |
|
|
|
/// <summary> |
|
/// Returns whether this entity is sealed. |
|
/// </summary> |
|
/// <remarks>Static classes also count as sealed classes.</remarks> |
|
bool IsSealed { get; } |
|
|
|
/// <summary> |
|
/// Gets whether this member is declared to be shadowing another member with the same name. |
|
/// (C# 'new' keyword) |
|
/// </summary> |
|
bool IsShadowing { get; } |
|
|
|
/// <summary> |
|
/// Resolves the entity in the current solution snapshot. |
|
/// Returns null if the entity could not be resolved. |
|
/// </summary> |
|
IEntity Resolve(); |
|
|
|
/// <summary> |
|
/// Resolves the entity in the specified solution snapshot. |
|
/// Returns null if the entity could not be resolved. |
|
/// </summary> |
|
IEntity Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot); |
|
} |
|
}
|
|
|