TargetPlatformGrammarAccess.IUElements _iUAccess = TargetPlatformValidator.this.grammarAccess.getIUAccess();
Keyword _semicolonKeyword_1_0_0 = _iUAccess.getSemicolonKeyword_1_0_0();
return Boolean.valueOf(Objects.equal(_grammarElement, _semicolonKeyword_1_0_0));
}
};
final INode semicolonKeywordRule = IterableExtensions.<INode>findFirst(_asTreeIterable, _function);
BidiTreeIterable<INode> _asTreeIterable_1 = node.getAsTreeIterable();
final Function1<INode, Boolean> _function_1 = new Function1<INode, Boolean>() {
public Boolean apply(final INode it) {
EObject _grammarElement = it.getGrammarElement();
TargetPlatformGrammarAccess.IUElements _iUAccess = TargetPlatformValidator.this.grammarAccess.getIUAccess();
Keyword _equalsSignKeyword_1_0_2 = _iUAccess.getEqualsSignKeyword_1_0_2();
return Boolean.valueOf(Objects.equal(_grammarElement, _equalsSignKeyword_1_0_2));
}
};
final INode equalSignKeywordRule = IterableExtensions.<INode>findFirst(_asTreeIterable_1, _function_1);
boolean _notEquals = (!Objects.equal(semicolonKeywordRule, null));
if (_notEquals) {
int _offset = semicolonKeywordRule.getOffset();
int _endOffset = equalSignKeywordRule.getEndOffset();
int _offset_1 = semicolonKeywordRule.getOffset();
int _minus = (_endOffset - _offset_1);
this.acceptWarning("Usage of keywords \';version=\' are not required anymore and has been deprecated.", iu, _offset, _minus, TargetPlatformValidator.CHECK__VERSION_KEYWORDS);
}
}