ArchiMetrics.CodeReview.Rules.Semantic.UnusedCodeRule.IsNotAssignment C# (CSharp) Method

IsNotAssignment() private method

private IsNotAssignment ( Location location ) : bool
location Location
return bool
		private bool IsNotAssignment(Location location)
		{
			if (!location.IsInSource)
			{
				return false;
			}

			var token = location.SourceTree.GetRoot().FindToken(location.SourceSpan.Start);
			var assignmentSyntax = GetAssignmentSyntax(token.Parent);
			if (assignmentSyntax == null)
			{
				return true;
			}

			return false;
		}