private static APC GetPCForMethodEntry <Local, Parameter, Method, Field, Type, Expression, Variable>( IExpressionContext <Local, Parameter, Method, Field, Type, Expression, Variable> context) where Type : IEquatable <Type> { APC entry = context.MethodContext.CFG.EntryAfterRequires; for (int count = 0; count < 10; count++) { if (entry.PrimaryMethodLocation().HasRealSourceContext) { return(entry.PrimaryMethodLocation()); } entry = context.MethodContext.CFG.Post(entry); } return(context.MethodContext.CFG.Entry); }
private double GetScoreForPC(APC pc) { var Score = 1.0; if (pc.Block != null && !pc.PrimaryMethodLocation().HasRealSourceContext) { Score *= ScoreNoSourceContext; } return(Score); }
private double GetScoreForPC(APC pc) { var Score = 1.0; if (pc.Block != null && !pc.PrimaryMethodLocation().HasRealSourceContext) { Score *= ScoreNoSourceContext; } return Score; }