Boo.Lang.Compiler.TypeSystem.TypeSystemServices.GetEntity C# (CSharp) Méthode

GetEntity() public static méthode

public static GetEntity ( Node node ) : IEntity
node Node
Résultat IEntity
        public static IEntity GetEntity(Node node)
        {
            var entity = node.Entity;
            if (entity != null)
                return entity;

            if (My<CompilerParameters>.Instance.Pipeline.BreakOnErrors)
                InvalidNode(node);

            return Error.Default;
        }

Usage Example

Exemple #1
0
 private IEnumerable <INamespace> ImportedNamespaces()
 {
     foreach (Import import in _module.Imports)
     {
         yield return((INamespace)TypeSystemServices.GetEntity(import));
     }
 }
All Usage Examples Of Boo.Lang.Compiler.TypeSystem.TypeSystemServices::GetEntity
TypeSystemServices