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

Camelcade / Perl5-IDEA / #525521635

20 Jul 2025 03:45PM UTC coverage: 82.266% (-0.09%) from 82.355%
#525521635

push

github

hurricup
Build 252.23892.248

30936 of 37605 relevant lines covered (82.27%)

0.82 hits per line

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

27.27
/mason/mason2/backend/src/main/java/com/perl5/lang/mason2/psi/impl/MasonMethodModifierImpl.java
1
/*
2
 * Copyright 2015-2025 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.mason2.psi.impl;
18

19
import com.intellij.lang.ASTNode;
20
import com.perl5.lang.mason2.psi.MasonMethodModifier;
21
import com.perl5.lang.perl.parser.moose.psi.impl.PerlMooseMethodModifierImpl;
22
import com.perl5.lang.perl.psi.PerlVariableDeclarationElement;
23
import com.perl5.lang.perl.psi.impl.PerlImplicitVariableDeclaration;
24
import org.jetbrains.annotations.NotNull;
25

26
import java.util.ArrayList;
27
import java.util.List;
28

29

30
public class MasonMethodModifierImpl extends PerlMooseMethodModifierImpl implements MasonMethodModifier {
31
  protected List<PerlVariableDeclarationElement> myImplicitVariables = null;
1✔
32

33
  public MasonMethodModifierImpl(ASTNode node) {
34
    super(node);
1✔
35
  }
1✔
36

37
  @Override
38
  public boolean hasStringSubReference() {
39
    return false;
×
40
  }
41

42
  protected @NotNull List<PerlVariableDeclarationElement> buildImplicitVariables() {
43
    List<PerlVariableDeclarationElement> newImplicitVariables = new ArrayList<>();
×
44
    if (isValid()) {
×
45
      newImplicitVariables.add(PerlImplicitVariableDeclaration.createInvocant(this));
×
46
    }
47
    return newImplicitVariables;
×
48
  }
49

50

51
  @Override
52
  public @NotNull List<PerlVariableDeclarationElement> getImplicitVariables() {
53
    if (myImplicitVariables == null) {
×
54
      myImplicitVariables = buildImplicitVariables();
×
55
    }
56
    return myImplicitVariables;
×
57
  }
58
}
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

© 2026 Coveralls, Inc