Skip to content

Commit 2353c31

Browse files
authored
Merge pull request #1880 from nipunayf/fix-failing-test
Exclude the `WARNING_210` diagnostic from using the type symbol's location
2 parents 8de173c + 2e45fa1 commit 2353c31

File tree

1 file changed

+1
-1
lines changed
  • compiler-plugin/src/main/java/io/ballerina/stdlib/graphql/compiler/service/validator

1 file changed

+1
-1
lines changed

compiler-plugin/src/main/java/io/ballerina/stdlib/graphql/compiler/service/validator/ServiceValidator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ private void validateInputObjectDefaultValues(RecordTypeSymbol recordTypeSymbol,
12411241
finderContext);
12421242
if (typeDefinitionNode == null) {
12431243
addDiagnostic(CompilationDiagnostic.UNABLE_TO_VALIDATE_DEFAULT_VALUES_OF_INPUT_OBJECT_AT_COMPILE_TIME,
1244-
getLocation(recordTypeSymbol, location), inputObjectTypeName);
1244+
location, inputObjectTypeName);
12451245
return;
12461246
}
12471247
for (RecordFieldSymbol recordFieldSymbol : recordTypeSymbol.fieldDescriptors().values()) {

0 commit comments

Comments
 (0)