SeeminglyScience / PSLambda

A runtime compiler for PowerShell ScriptBlock objects.
MIT License
61 stars 3 forks source link

Fix type inference in foreach statements #14

Closed SeeminglyScience closed 6 years ago

SeeminglyScience commented 6 years ago

Determine GetEnumerable and get_Current method by detecting IEnumerable<>, IDictionary or IEnumerable implementations.

Resolves #1

codecov-io commented 6 years ago

Codecov Report

Merging #14 into master will increase coverage by 0.29%. The diff coverage is 98.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
+ Coverage   76.27%   76.57%   +0.29%     
==========================================
  Files          28       28              
  Lines        2150     2203      +53     
  Branches      331      339       +8     
==========================================
+ Hits         1640     1687      +47     
- Misses        385      386       +1     
- Partials      125      130       +5
Impacted Files Coverage Δ
src/PSLambda/ExpressionUtils.cs 97.24% <100%> (ø) :arrow_up:
src/PSLambda/ReflectionCache.cs 97.97% <100%> (+0.22%) :arrow_up:
src/PSLambda/CompileVisitor.cs 74.74% <98%> (+0.62%) :arrow_up:
src/PSLambda/MemberBinder.cs 84.13% <0%> (-0.37%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f2b331b...4668e83. Read the comment docs.