@@ -185,47 +185,6 @@ public override AstVisitAction VisitPropertyMember(PropertyMemberAst propertyMem
185
185
return AstVisitAction . Continue ;
186
186
}
187
187
188
- /// <summary>
189
- /// Decides if the current configuration definition is the right definition
190
- /// for the symbol being searched for. The definition of the symbol will be a of type
191
- /// SymbolType.Configuration and have the same name as the symbol
192
- /// </summary>
193
- /// <param name="configurationDefinitionAst">A ConfigurationDefinitionAst in the script's AST</param>
194
- /// <returns>A decision to stop searching if the right ConfigurationDefinitionAst was found,
195
- /// or a decision to continue if it wasn't found</returns>
196
- public override AstVisitAction VisitConfigurationDefinition ( ConfigurationDefinitionAst configurationDefinitionAst )
197
- {
198
- string configurationName = configurationDefinitionAst . InstanceName . Extent . Text ;
199
-
200
- if ( symbolRef . SymbolType . Equals ( SymbolType . Configuration ) &&
201
- configurationName . Equals ( symbolRef . SymbolName , StringComparison . CurrentCultureIgnoreCase ) )
202
- {
203
- // Show only configuration name. Offset by StartColumn to include indentation etc.
204
- int startColumnNumber =
205
- configurationDefinitionAst . Extent . StartColumnNumber +
206
- configurationDefinitionAst . Extent . Text . IndexOf ( configurationName ) ;
207
-
208
- IScriptExtent nameExtent = new ScriptExtent ( )
209
- {
210
- Text = configurationName ,
211
- StartLineNumber = configurationDefinitionAst . Extent . StartLineNumber ,
212
- EndLineNumber = configurationDefinitionAst . Extent . StartLineNumber ,
213
- StartColumnNumber = startColumnNumber ,
214
- EndColumnNumber = startColumnNumber + configurationName . Length ,
215
- File = configurationDefinitionAst . Extent . File
216
- } ;
217
-
218
- FoundDeclaration =
219
- new SymbolReference (
220
- SymbolType . Configuration ,
221
- nameExtent ) ;
222
-
223
- return AstVisitAction . StopVisit ;
224
- }
225
-
226
- return AstVisitAction . Continue ;
227
- }
228
-
229
188
/// <summary>
230
189
/// Check if the left hand side of an assignmentStatementAst is a VariableExpressionAst
231
190
/// with the same name as that of symbolRef.
0 commit comments