コード例 #1
0
 /// <summary>
 /// Returns the file name of the test file for the specified opcode.
 /// </summary>
 /// <param name="opcodeSpec">The opcode specification.</param>
 /// <returns>A filename.</returns>
 static string GetTestFilename(OpcodeSpec opcodeSpec)
 {
     return(SpecWriter.AsValidIdentifier(opcodeSpec.Name + "Tests") + ".generated.cs");
 }
コード例 #2
0
 /// <summary>
 /// Registers a new writer with the specified platform ID.
 /// </summary>
 /// <param name="platformID">The ID of the platform.</param>
 /// <param name="writer">The writer instance.</param>
 public void Register(string platformID, SpecWriter writer)
 {
     writers.Add(platformID, writer);
 }
コード例 #3
0
 /// <summary>
 /// Registers a new writer with the specified platform ID.
 /// </summary>
 /// <param name="platformID">The ID of the platform.</param>
 /// <param name="writer">The writer instance.</param>
 public void Register(string platformID, SpecWriter writer)
 {
     writers.Add(platformID, writer);
 }