Пример #1
0
 public IBuildIntention <IModuleDefinition> GetBuildIntention(IConversionContext context)
 {
     var(toBuild, maker) = ModuleDefinition.Create();
     return(new BuildIntention <IModuleDefinition>(toBuild, () =>
     {
         maker.Build(
             Scope.Convert(context),
             StaticInitialization
             .Select(x => x.GetOrThrow().PossiblyConvert(context))
             .OfType <IIsDefinately <ICodeElement> >()
             .Select(x => x.Value)
             .ToArray(),
             Key);
     }));
 }