public int parsing_generic_less_than;
public int current_token;
public object val;
+ public int parsing_string_interpolation;
public Position (Tokenizer t)
{
ifstack = new Stack<int> (clone);
}
parsing_generic_less_than = t.parsing_generic_less_than;
+ parsing_string_interpolation = t.parsing_string_interpolation;
current_token = t.current_token;
val = t.val;
}
previous_col = p.previous_col;
ifstack = p.ifstack;
parsing_generic_less_than = p.parsing_generic_less_than;
+ parsing_string_interpolation = p.parsing_string_interpolation;
current_token = p.current_token;
val = p.val;
}
case Token.NULL:
case Token.THIS:
case Token.NEW:
+ case Token.INTERPOLATED_STRING:
next_token = Token.INTERR;
break;
--- /dev/null
+using System;
+
+public class ParserTest
+{
+ void Test1 ()
+ {
+ bool b = true;
+ Console.WriteLine(b ? $"{1:0.00}" : $"bar");
+ }
+
+ public static void Main()
+ {
+ }
+}
\ No newline at end of file
</method>
</type>
</test>
+ <test name="test-interpolation-05.cs">
+ <type name="ParserTest">
+ <method name="Void Test1()" attrs="129">
+ <size>41</size>
+ </method>
+ <method name="Void Main()" attrs="150">
+ <size>2</size>
+ </method>
+ <method name="Void .ctor()" attrs="6278">
+ <size>7</size>
+ </method>
+ </type>
+ </test>
<test name="test-iter-01.cs">
<type name="X">
<method name="Int32 Main()" attrs="150">