void IConflictChecker.CheckConflict(ParseInfo parseInfo, CheckConflict identifier, DocRange range) { if (_variableNames.Contains(identifier.Name)) { parseInfo.Script.Diagnostics.Error("Struct cannot have multiple properties with the same name", range); } }
public void CheckConflict(ParseInfo parseInfo, CheckConflict identifier, DocRange range) => SemanticsHelper.ErrorIfConflicts( parseInfo: parseInfo, identifier: identifier, nameConflictMessage: Parse.CheckConflict.CreateNameConflictMessage(Name, identifier.Name), overloadConflictMessage: Parse.CheckConflict.CreateOverloadConflictMessage(Name, identifier.Name), range: range, _objectScope, _staticScope);
public void CheckConflict(ParseInfo parseInfo, CheckConflict identifier, DocRange range) => RulesetScope.CheckConflict(parseInfo, identifier, range);