Esempio n. 1
0
 internal static ClearDebugInfo ClearDebugInfo(DebugInfoExpression expression)
 {
     return(new ClearDebugInfo()
     {
         Document = SymbolDocumentInfo.Serialize(expression.Document),
     }.Apply(n => n.Type = TypeRef.Serialize(expression.Type)));
 }
Esempio n. 2
0
 internal static DebugInfo DebugInfo(DebugInfoExpression expression)
 {
     return(expression.IsClear
         ? ClearDebugInfo(expression)
         : new DebugInfo()
     {
         Document = SymbolDocumentInfo.Serialize(expression.Document),
         StartLine = expression.StartLine,
         StartColumn = expression.StartColumn,
         EndLine = expression.EndLine,
         EndColumn = expression.EndColumn,
     }.Apply(n => n.Type = TypeRef.Serialize(expression.Type)));
 }