// Token: 0x06000B43 RID: 2883 RVA: 0x00035E50 File Offset: 0x00034050 private void AppendMember(List <SyntaxHighlighter.TokenBuffer> statement) { for (int i = 0; i < statement.Count; i++) { SyntaxHighlighter.TokenBuffer tokenBuffer = statement[i]; this.AppendWhitespace(tokenBuffer.StartIndex); if (tokenBuffer.Token == Token.IDENTIFIER) { string @string = tokenBuffer.GetString(this.tokenizer); if (TypeExtensions.IsCSharpKeyword(@string)) { this.Colorize(@string, SyntaxHighlighter.KeywordColor); } else { Token token = (i + 1 < statement.Count) ? statement[i + 1].Token : Token.UNKNOWN; if (token != Token.UNKNOWN && (token == Token.SIMPLE_ASSIGNMENT || token == Token.SEMI_COLON || token == Token.SCOPE_BEGIN || token == Token.LEFT_PARENTHESIS || token == Token.COMMA)) { this.Append(@string); } else { this.Colorize(@string, SyntaxHighlighter.IdentifierColor); } } this.textPosition = tokenBuffer.EndIndex; } else { this.AppendToken(tokenBuffer); } } }
// Token: 0x06000B44 RID: 2884 RVA: 0x00035F1C File Offset: 0x0003411C private void AppendImplementation(List <SyntaxHighlighter.TokenBuffer> statement) { for (int i = 0; i < statement.Count; i++) { SyntaxHighlighter.TokenBuffer tokenBuffer = statement[i]; this.AppendWhitespace(tokenBuffer.StartIndex); if (tokenBuffer.Token == Token.IDENTIFIER) { string @string = tokenBuffer.GetString(this.tokenizer); if (TypeExtensions.IsCSharpKeyword(@string)) { this.Colorize(@string, SyntaxHighlighter.KeywordColor); } else { this.result.Append(@string); } this.textPosition = tokenBuffer.EndIndex; } else { this.AppendToken(tokenBuffer); } } }
// Token: 0x06000B42 RID: 2882 RVA: 0x00035DD4 File Offset: 0x00033FD4 private void AppendDeclaration(List <SyntaxHighlighter.TokenBuffer> statementBuffer, ref int prevIndex) { for (int i = 0; i < statementBuffer.Count; i++) { SyntaxHighlighter.TokenBuffer tokenBuffer = statementBuffer[i]; this.AppendWhitespace(tokenBuffer.StartIndex); if (tokenBuffer.Token == Token.IDENTIFIER) { string @string = tokenBuffer.GetString(this.tokenizer); if (TypeExtensions.IsCSharpKeyword(@string)) { this.Colorize(@string, SyntaxHighlighter.KeywordColor); } else { this.Colorize(@string, SyntaxHighlighter.IdentifierColor); } prevIndex = tokenBuffer.EndIndex; } else { this.AppendToken(tokenBuffer); } } }