IHighlightingDefinition GetDefinition(XshdElement position, string definitionName) { if (definitionName == null) return def; if (resolver == null) throw Error(position, "Resolving references to other syntax definitions is not possible because the IHighlightingDefinitionReferenceResolver is null."); IHighlightingDefinition d = resolver.GetDefinition(definitionName); if (d == null) throw Error(position, "Could not find definition with name '" + definitionName + "'."); return d; }
IHighlightingDefinition GetDefinition(XshdElement position, string definitionName) { if (definitionName == null) { return(def); } IHighlightingDefinition d = resolver.GetDefinition(definitionName); if (d == null) { throw Error(position, "Could not find definition with name '" + definitionName + "'."); } return(d); }
private IHighlightingDefinition GetDefinition(XshdElement position, string definitionName) { if (definitionName == null) { return(_def); } if (_resolver == null) { throw Error(position, "Resolving references to other syntax definitions is not possible because the IHighlightingDefinitionReferenceResolver is null."); } var d = _resolver.GetDefinition(definitionName); if (d == null) { throw Error(position, "Could not find definition with name '" + definitionName + "'."); } return(d); }