Implemented interface member:
89 references to Equals
Microsoft.CodeAnalysis (4)
Syntax\SyntaxToken.cs (3)
537return left.Equals(right); 545return !left.Equals(right); 566return obj is SyntaxToken && Equals((SyntaxToken)obj);
Syntax\SyntaxTriviaList.cs (1)
464return Node == other.Node && Index == other.Index && Token.Equals(other.Token);
Microsoft.CodeAnalysis.CodeStyle (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59return this.Token.Equals(other.Token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (4)
158if (_tokens[lastIndex].Equals(previousToken)) 175if (_tokens[0].Equals(nextToken)) 392Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span)); 417Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
206if (token1.Equals(token2) && end < start)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (3)
124Contract.ThrowIfFalse(startToken.Equals(endToken) || startToken.Span.End <= endToken.SpanStart); 136if (startToken.Equals(endToken)) 171Contract.ThrowIfTrue(token1.Equals(token2));
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceLocalSymbol.cs (1)
500&& symbol._identifierToken.Equals(_identifierToken)
Microsoft.CodeAnalysis.CSharp.CodeStyle (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (14)
226return parenthesizedExpression.OpenParenToken.Equals(token) || parenthesizedExpression.CloseParenToken.Equals(token); 291IfStatementSyntax ifStatement => ifStatement.CloseParenToken.Equals(token), 292SwitchStatementSyntax switchStatement => switchStatement.CloseParenToken.Equals(token), 293WhileStatementSyntax whileStatement => whileStatement.CloseParenToken.Equals(token), 294DoStatementSyntax doStatement => doStatement.CloseParenToken.Equals(token), 295ForStatementSyntax forStatement => forStatement.CloseParenToken.Equals(token), 296CommonForEachStatementSyntax foreachStatement => foreachStatement.CloseParenToken.Equals(token), 297LockStatementSyntax lockStatement => lockStatement.CloseParenToken.Equals(token), 298UsingStatementSyntax usingStatement => usingStatement.CloseParenToken.Equals(token), 299FixedStatementSyntax fixedStatement => fixedStatement.CloseParenToken.Equals(token), 315&& memberAccess.OperatorToken.Equals(token); 384queryExpression.GetFirstToken().Equals(token); 499if (lastAttributeToken.Equals(lastToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
102if (!baseToken.IsMissing && !baseToken.Equals(endToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
410if (!firstToken.Equals(lastToken))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (1)
3444if (tokenRange.Value.Item1.Equals(tokenRange.Value.Item2))
Microsoft.CodeAnalysis.CSharp.Workspaces (17)
Formatting\CSharpSyntaxFormattingService.cs (1)
163if (tokenRange == null || tokenRange.Value.Item1.Equals(tokenRange.Value.Item2))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (14)
226return parenthesizedExpression.OpenParenToken.Equals(token) || parenthesizedExpression.CloseParenToken.Equals(token); 291IfStatementSyntax ifStatement => ifStatement.CloseParenToken.Equals(token), 292SwitchStatementSyntax switchStatement => switchStatement.CloseParenToken.Equals(token), 293WhileStatementSyntax whileStatement => whileStatement.CloseParenToken.Equals(token), 294DoStatementSyntax doStatement => doStatement.CloseParenToken.Equals(token), 295ForStatementSyntax forStatement => forStatement.CloseParenToken.Equals(token), 296CommonForEachStatementSyntax foreachStatement => foreachStatement.CloseParenToken.Equals(token), 297LockStatementSyntax lockStatement => lockStatement.CloseParenToken.Equals(token), 298UsingStatementSyntax usingStatement => usingStatement.CloseParenToken.Equals(token), 299FixedStatementSyntax fixedStatement => fixedStatement.CloseParenToken.Equals(token), 315&& memberAccess.OperatorToken.Equals(token); 384queryExpression.GetFirstToken().Equals(token); 499if (lastAttributeToken.Equals(lastToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (1)
102if (!baseToken.IsMissing && !baseToken.Equals(endToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
410if (!firstToken.Equals(lastToken))
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Source\LocalSymbol.vb (1)
622Return other IsNot Nothing AndAlso other._identifierToken.Equals(Me._identifierToken) AndAlso Equals(other._container, Me._container) AndAlso String.Equals(other.Name, Me.Name)
Symbols\Source\RangeVariableSymbol.vb (1)
229Return other IsNot Nothing AndAlso other._identifierToken.Equals(_identifierToken)
Symbols\Source\SourceLabelSymbol.vb (1)
73Return symbol IsNot Nothing AndAlso symbol._labelName.Equals(Me._labelName) AndAlso
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (14)
src\Workspaces\VisualBasic\Portable\Formatting\FormattingHelpers.vb (14)
14DirectCast(token.Parent, AttributeListSyntax).LessThanToken.Equals(token) Then 25DirectCast(token.Parent, AttributeListSyntax).GreaterThanToken.Equals(token) Then 40(DirectCast(token.Parent, XmlStringSyntax).StartQuoteToken.Equals(token) OrElse 41DirectCast(token.Parent, XmlStringSyntax).EndQuoteToken.Equals(token)) Then 54Not DirectCast(token.Parent, XmlStringSyntax).StartQuoteToken.Equals(token) AndAlso 55Not DirectCast(token.Parent, XmlStringSyntax).EndQuoteToken.Equals(token) Then 297Return argumentList.OpenParenToken.Equals(token) OrElse argumentList.CloseParenToken.Equals(token) 306Return binaryCondition.OpenParenToken.Equals(token) OrElse binaryCondition.CloseParenToken.Equals(token) 315Return ternaryCondition.OpenParenToken.Equals(token) OrElse ternaryCondition.CloseParenToken.Equals(token) 324Return xmlDeclaration.LessThanQuestionToken.Equals(token) OrElse xmlDeclaration.QuestionGreaterThanToken.Equals(token)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\VisualBasicMethodExtractor.vb (1)
113DirectCast(token.Parent, AttributeListSyntax).LessThanToken.Equals(token) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (14)
Formatting\FormattingHelpers.vb (14)
14DirectCast(token.Parent, AttributeListSyntax).LessThanToken.Equals(token) Then 25DirectCast(token.Parent, AttributeListSyntax).GreaterThanToken.Equals(token) Then 40(DirectCast(token.Parent, XmlStringSyntax).StartQuoteToken.Equals(token) OrElse 41DirectCast(token.Parent, XmlStringSyntax).EndQuoteToken.Equals(token)) Then 54Not DirectCast(token.Parent, XmlStringSyntax).StartQuoteToken.Equals(token) AndAlso 55Not DirectCast(token.Parent, XmlStringSyntax).EndQuoteToken.Equals(token) Then 297Return argumentList.OpenParenToken.Equals(token) OrElse argumentList.CloseParenToken.Equals(token) 306Return binaryCondition.OpenParenToken.Equals(token) OrElse binaryCondition.CloseParenToken.Equals(token) 315Return ternaryCondition.OpenParenToken.Equals(token) OrElse ternaryCondition.CloseParenToken.Equals(token) 324Return xmlDeclaration.LessThanQuestionToken.Equals(token) OrElse xmlDeclaration.QuestionGreaterThanToken.Equals(token)
Microsoft.CodeAnalysis.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenData.cs (1)
59return this.Token.Equals(other.Token);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (4)
158if (_tokens[lastIndex].Equals(previousToken)) 175if (_tokens[0].Equals(nextToken)) 392Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span)); 417Debug.Assert((token1.IndexInStream >= 0 && token2.IndexInStream >= 0) || token1.Token.Equals(token2.Token.GetPreviousToken(includeZeroWidth: true)) || token2.Token.LeadingTrivia.Span.Contains(token1.Token.Span));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\BaseIndentationFormattingRule.cs (1)
206if (token1.Equals(token2) && end < start)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (3)
124Contract.ThrowIfFalse(startToken.Equals(endToken) || startToken.Span.End <= endToken.SpanStart); 136if (startToken.Equals(endToken)) 171Contract.ThrowIfTrue(token1.Equals(token2));