Boo.Lang.Compiler.TypeSystem.TypeSystemServices.GetEntity C# (CSharp) Method

GetEntity() public static method

public static GetEntity ( Node node ) : IEntity
node Node
return 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

Example #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