• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

neo-project / neo-devpack-dotnet / 11831182135

14 Nov 2024 05:16AM CUT coverage: 74.198%. First build
11831182135

Pull #1237

github

web-flow
Merge ffadde25b into 41fbc3295
Pull Request #1237: DebugInfoBuilder for sequence point v2

4877 of 7142 branches covered (68.29%)

Branch coverage included in aggregate %.

48 of 49 new or added lines in 1 file covered. (97.96%)

13038 of 17003 relevant lines covered (76.68%)

17987.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Neo.Compiler.CSharp/MethodConvert/Pattern/ParenthesizedPattern.cs
1
// Copyright (C) 2015-2024 The Neo Project.
2
//
3
// The Neo.Compiler.CSharp is free software distributed under the MIT
4
// software license, see the accompanying file LICENSE in the main directory
5
// of the project or http://www.opensource.org/licenses/mit-license.php
6
// for more details.
7
//
8
// Redistribution and use in source and binary forms with or without
9
// modifications are permitted.
10

11
extern alias scfx;
12

13
using Microsoft.CodeAnalysis;
14
using Microsoft.CodeAnalysis.CSharp.Syntax;
15
using Neo.VM;
16

17
namespace Neo.Compiler;
18

19
internal partial class MethodConvert
20
{
21
    /// <summary>
22
    /// Convet a parenthesized pattern to OpCodes.
23
    /// </summary>
24
    /// <param name="model">The semantic model providing context and information about parenthesized pattern.</param>
25
    /// <param name="pattern">The parenthesized pattern to be converted.</param>
26
    /// <param name="localIndex">The index of the local variable.</param>
27
    /// <remarks>
28
    /// You can put parentheses around any pattern.
29
    /// Typically, you do that to emphasize or change the precedence in logical patterns,
30
    /// as the following example shows:
31
    /// </remarks>
32
    /// <example>
33
    /// <c>return value is (> 1 and < 100);</c>
34
    /// </example>
35
    private void ConvertParenthesizedPatternSyntax(SemanticModel model, ParenthesizedPatternSyntax pattern, byte localIndex)
36
    {
×
37
        ConvertPattern(model, pattern.Pattern, localIndex);
×
38
    }
×
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc