IColorizeText.GetStateForText(String, SourceState) Método

Definición

Cuando se implementa en una clase, examina el código fuente especificado para buscar unidades de código individuales e identifica el estado (normal, comentario, cadena) del código especificado.

Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el código.

public:
 Microsoft::JScript::SourceState GetStateForText(System::String ^ sourceCode, Microsoft::JScript::SourceState currentState);
public Microsoft.JScript.SourceState GetStateForText (string sourceCode, Microsoft.JScript.SourceState currentState);
abstract member GetStateForText : string * Microsoft.JScript.SourceState -> Microsoft.JScript.SourceState
Public Function GetStateForText (sourceCode As String, currentState As SourceState) As SourceState

Parámetros

sourceCode
String

Código fuente que se va a analizar.

currentState
SourceState

Estado actual (normal, comentario, cadena) del código fuente.

Devoluciones

Estado del código fuente.

Se aplica a

Consulte también