bound types
This commit is contained in:
@@ -37,14 +37,14 @@ public class DefinitionTable
|
||||
return structNode.Fields.Where(x => x.Name == field);
|
||||
}
|
||||
|
||||
public IEnumerable<TraitFuncImplSyntax> LookupTraitFuncImpl(NubType forType, string name)
|
||||
{
|
||||
return _definitions
|
||||
.OfType<TraitImplSyntax>()
|
||||
.Where(x => x.ForType == forType)
|
||||
.SelectMany(x => x.Functions)
|
||||
.Where(x => x.Name == name);
|
||||
}
|
||||
// public IEnumerable<TraitFuncImplSyntax> LookupTraitFuncImpl(NubType forType, string name)
|
||||
// {
|
||||
// return _definitions
|
||||
// .OfType<TraitImplSyntax>()
|
||||
// .Where(x => x.ForType == forType)
|
||||
// .SelectMany(x => x.Functions)
|
||||
// .Where(x => x.Name == name);
|
||||
// }
|
||||
|
||||
public IEnumerable<TraitSyntax> LookupTrait(string @namespace, string name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user