Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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)));
        }
Ejemplo n.º 3
0
 /// <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);
         }
     }
 }
Ejemplo n.º 4
0
 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);
Ejemplo n.º 5
0
 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);