public override void Populate(TextWriter trapFile) { var typeKey = VarargsType.Create(Context); // !! Maybe originaldefinition is wrong trapFile.@params(this, "", typeKey, Ordinal, Kind.None, Parent, this); trapFile.param_location(this, GeneratedLocation.Create(Context)); }
public override void Populate() { var typeKey = VarargsType.Create(Context); // !! Maybe originaldefinition is wrong Context.Emit(Tuples.@params(this, "", typeKey, Ordinal, Kind.None, Parent, this)); Context.Emit(Tuples.param_location(this, GeneratedLocation.Create(Context))); }
/// <summary> /// Runs the main populate loop until there's nothing left to populate. /// </summary> public void PopulateAll() { while (populateQueue.Any()) { try { populateQueue.Dequeue()(); } catch (InternalError ex) { ExtractionError(new Message(ex.Text, ex.EntityText, Entities.Location.Create(this, ex.Location), ex.StackTrace)); } catch (Exception ex) // lgtm[cs/catch-of-all-exceptions] { ExtractionError("Uncaught exception", ex.Message, GeneratedLocation.Create(this), ex.StackTrace); } } }
public static Location Create(Context cx, Microsoft.CodeAnalysis.Location loc) => loc == null || loc.Kind == Microsoft.CodeAnalysis.LocationKind.None ? GeneratedLocation.Create(cx) : loc.IsInSource ? SourceLocation.Create(cx, loc) : Assembly.Create(cx, loc);
internal static Location Create(Context cx, Microsoft.CodeAnalysis.Location loc) => loc == null?GeneratedLocation.Create(cx) : loc.IsInSource ? SourceLocation.Create(cx, loc) : Assembly.Create(cx, loc);