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

neo-project / neo-devpack-dotnet / 12049860354

27 Nov 2024 12:01PM CUT coverage: 74.047%. Remained the same
12049860354

Pull #1253

github

web-flow
Merge a37ed6526 into 76b15d5a6
Pull Request #1253: Small optmizations from #1251

4991 of 7352 branches covered (67.89%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

13258 of 17293 relevant lines covered (76.67%)

18305.71 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